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 switch ($a_direction)
224 $a_text = preg_replace(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/",
"src=\"il_" . IL_INST_ID .
"_mob_" .
"\\2" .
"\"", $a_text);
227 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
228 $resulttext = $a_text;
229 if (preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
231 foreach ($matches[2] as $idx => $mob)
236 $replace =
"il_" . $matches[1][$idx] .
"_mob_" . $mob;
237 $resulttext = str_replace(
"src=\"$replace\"",
"src=\"" . ILIAS_HTTP_PATH .
"/data/" . CLIENT_ID .
"/mobs/mm_" . $mob .
"/" . $mob_obj->getTitle() .
"\"", $resulttext);
241 $a_text = $resulttext;