57 $this->plugins = array();
58 $this->buttons = array();
71 array_push($this->plugins, $a_plugin_name);
84 array_push($this->buttons, $a_button_name);
97 $key = array_search($a_plugin_name, $this->plugins);
100 unset($this->plugins[$key]);
114 $key = array_search($a_button_name, $this->buttons);
117 unset($this->buttons[$key]);
158 include_once
"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
182 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
185 while (eregi(
"data\/".CLIENT_ID.
"\/mobs\/mm_([0-9]+)", $a_text, $found))
187 $a_text = str_replace($found[0],
"", $a_text);
188 if (!in_array($found[1],
$mobs))
197 unset(
$mobs[$found[1]]);
204 foreach(
$mobs as $mob)
224 if (!strlen($a_text))
return "";
225 switch ($a_direction)
228 $a_text = preg_replace(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/",
"src=\"il_" . IL_INST_ID .
"_mob_" .
"\\2" .
"\"", $a_text);
231 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
232 $resulttext = $a_text;
233 if (preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
235 foreach ($matches[2] as $idx => $mob)
240 $replace =
"il_" . $matches[1][$idx] .
"_mob_" . $mob;
241 $resulttext = str_replace(
"src=\"$replace\"",
"src=\"" . ILIAS_HTTP_PATH .
"/data/" . CLIENT_ID .
"/mobs/mm_" . $mob .
"/" . $mob_obj->getTitle() .
"\"", $resulttext);
245 $a_text = $resulttext;
260 if (!strlen($a_text))
return array();
261 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
263 $mediaObjects = array();
264 switch ($a_direction)
267 if(preg_match_all(
"/src\=\"(.*?\/mobs\/mm_([0-9]+)\/.*?)\"/", $a_text, $matches))
269 foreach ($matches[2] as $idx => $mob)
273 $mediaObjects[] = $mob;
280 if(preg_match_all(
"/src\=\"il_([0-9]+)_mob_([0-9]+)\"/", $a_text, $matches))
282 foreach ($matches[2] as $idx => $mob)
286 $mediaObjects[] = $mob;
292 return $mediaObjects;