63 $this->plugins = array();
64 $this->buttons = array();
77 array_push($this->plugins, $a_plugin_name);
90 array_push($this->buttons, $a_button_name);
103 $key = array_search($a_plugin_name, $this->plugins);
106 unset($this->plugins[$key]);
112 foreach($this->plugins as $plugin)
128 $key = array_search($a_button_name, $this->buttons);
131 unset($this->buttons[$key]);
172 include_once
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
196 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
199 while (eregi(
"data\/".CLIENT_ID.
"\/mobs\/mm_([0-9]+)", $a_text, $found))
201 $a_text = str_replace($found[0],
"", $a_text);
202 if (!in_array($found[1],
$mobs))
211 unset(
$mobs[$found[1]]);
218 foreach(
$mobs as $mob)
238 if (!strlen($a_text))
return "";
239 switch ($a_direction)
242 $a_text = preg_replace(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/",
"src=\"il_" . $nic .
"_mob_" .
"\\2" .
"\"", $a_text);
245 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
246 $resulttext = $a_text;
247 if (preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
249 foreach ($matches[2] as $idx => $mob)
254 $replace =
"il_" . $matches[1][$idx] .
"_mob_" . $mob;
255 $resulttext = str_replace(
"src=\"$replace\"",
"src=\"" . ILIAS_HTTP_PATH .
"/data/" . CLIENT_ID .
"/mobs/mm_" . $mob .
"/" . $mob_obj->getTitle() .
"\"", $resulttext);
259 $a_text = $resulttext;
274 if (!strlen($a_text))
return array();
275 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
277 $mediaObjects = array();
278 switch ($a_direction)
281 if(preg_match_all(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/", $a_text, $matches))
283 foreach ($matches[2] as $idx => $mob)
287 $mediaObjects[] = $mob;
294 if(preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
296 foreach ($matches[2] as $idx => $mob)
300 $mediaObjects[] = $mob;
306 return $mediaObjects;