55 $this->plugins = array();
56 $this->buttons = array();
69 array_push($this->plugins, $a_plugin_name);
82 array_push($this->buttons, $a_button_name);
95 $key = array_search($a_plugin_name, $this->plugins);
98 unset($this->plugins[$key]);
112 $key = array_search($a_button_name, $this->buttons);
115 unset($this->buttons[$key]);
156 include_once
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
180 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
183 while (eregi(
"data\/".CLIENT_ID.
"\/mobs\/mm_([0-9]+)", $a_text, $found))
185 $a_text = str_replace($found[0],
"", $a_text);
186 if (!in_array($found[1],
$mobs))
195 unset(
$mobs[$found[1]]);
202 foreach(
$mobs as $mob)
221 if (!strlen($a_text))
return "";
222 switch ($a_direction)
225 $a_text = preg_replace(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/",
"src=\"il_" . IL_INST_ID .
"_mob_" .
"\\2" .
"\"", $a_text);
228 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
229 $resulttext = $a_text;
230 if (preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
232 foreach ($matches[2] as $idx => $mob)
237 $replace =
"il_" . $matches[1][$idx] .
"_mob_" . $mob;
238 $resulttext = str_replace(
"src=\"$replace\"",
"src=\"" . ILIAS_HTTP_PATH .
"/data/" . CLIENT_ID .
"/mobs/mm_" . $mob .
"/" . $mob_obj->getTitle() .
"\"", $resulttext);
242 $a_text = $resulttext;
257 if (!strlen($a_text))
return array();
258 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
260 $mediaObjects = array();
261 switch ($a_direction)
264 if(preg_match_all(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/", $a_text, $matches))
266 foreach ($matches[2] as $idx => $mob)
270 $mediaObjects[] = $mob;
277 if(preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
279 foreach ($matches[2] as $idx => $mob)
283 $mediaObjects[] = $mob;
289 return $mediaObjects;