4require_once (
"./Services/COPage/classes/class.ilPageContentGUI.php");
5require_once (
"./Services/COPage/classes/class.ilMediaAliasItem.php");
6require_once (
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
26 function __construct($a_pg_obj, $a_content_obj, $a_hier_id = 0, $a_pc_id =
"")
33 parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
36 "MediaContainer" => $this->lng->txt(
"cont_Media"),
37 "MediaContainerMax50" =>
"MediaContainerMax50",
38 "MediaContainerFull100" =>
"MediaContainerFull100"
45 $this->header = $a_title;
60 $this->enabledmapareas = $a_enabledmapareas;
70 return $this->enabledmapareas;
83 $next_class = $this->ctrl->getNextClass($this);
86 $cmd = $this->ctrl->getCmd();
88 if (is_object ($this->content_obj))
90 $this->tpl->clearHeader();
92 $this->
getTabs($this->tabs_gui);
94 $mob = $this->content_obj->getMediaObject();
97 $tpl->setVariable(
"HEADER",
$lng->txt(
"mob").
": ".
98 $this->content_obj->getMediaObject()->getTitle());
99 $mob_gui =
new ilObjMediaObjectGUI(
"", $this->content_obj->getMediaObject()->getId(),
false,
false);
100 $mob_gui->setBackTitle($this->page_back_title);
102 $mob_gui->getTabs($this->tabs_gui);
111 case "ilobjmediaobjectgui":
112 include_once (
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
113 $this->tpl->clearHeader();
115 $this->tpl->setTitle($this->lng->txt(
"mob").
": ".
116 $this->content_obj->getMediaObject()->getTitle());
117 $mob_gui =
new ilObjMediaObjectGUI(
"", $this->content_obj->getMediaObject()->getId(),
false,
false);
118 $mob_gui->setBackTitle($this->page_back_title);
120 $ret = $this->ctrl->forwardCommand($mob_gui);
124 case "ilpcimagemapeditorgui":
125 require_once(
"./Services/COPage/classes/class.ilPCImageMapEditorGUI.php");
126 $ilTabs->setTabActive(
"cont_inst_map_areas");
129 $ret = $this->ctrl->forwardCommand($image_map_edit);
144 function insert($a_post_cmd =
"edpost", $a_submit_cmd =
"create_mob", $a_input_error =
false)
148 if (
$_GET[
"subCmd"] ==
"insertNew")
150 $_SESSION[
"cont_media_insert"] =
"insertNew";
152 if (
$_GET[
"subCmd"] ==
"insertFromPool")
154 $_SESSION[
"cont_media_insert"] =
"insertFromPool";
157 if ((
$_GET[
"subCmd"] ==
"") &&
$_SESSION[
"cont_media_insert"] !=
"")
162 switch (
$_GET[
"subCmd"])
164 case "insertFromPool":
168 case "poolSelection":
179 $ilTabs->setSubTabActive(
"cont_new_mob");
181 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
189 $mob_gui->initForm(
"create");
190 $form = $mob_gui->getForm();
192 $form->setFormAction(
$ilCtrl->getFormAction($this,
"create_mob"));
193 $form->clearCommandButtons();
194 $form->addCommandButton(
"create_mob",
$lng->txt(
"save"));
195 $form->addCommandButton(
"cancelCreate",
$lng->txt(
"cancel"));
199 $tpl->setContent($form->getHTML());
212 if (
$_GET[
"subCmd"] ==
"insertNew")
214 $_SESSION[
"cont_media_insert"] =
"insertNew";
216 if (
$_GET[
"subCmd"] ==
"insertFromPool")
218 $_SESSION[
"cont_media_insert"] =
"insertFromPool";
221 if ((
$_GET[
"subCmd"] ==
"") &&
$_SESSION[
"cont_media_insert"] !=
"")
226 switch (
$_GET[
"subCmd"])
228 case "insertFromPool":
232 case "poolSelection":
242 $ilCtrl->setParameter($this,
"subCmd",
"changeObjectReference");
243 $this->
getTabs($ilTabs,
true,
true);
244 $ilTabs->setSubTabActive(
"cont_new_mob");
249 $mob_gui->initForm(
"create");
250 $form = $mob_gui->getForm();
251 $form->setFormAction(
$ilCtrl->getFormAction($this));
252 $form->clearCommandButtons();
253 $form->addCommandButton(
"createNewObjectReference",
$lng->txt(
"save"));
254 $form->addCommandButton(
"cancelCreate",
$lng->txt(
"cancel"));
255 $this->tpl->setContent($form->getHTML());
266 if (
$_SESSION[
"cont_media_pool"] !=
"" &&
267 $ilAccess->checkAccess(
"write",
"",
$_SESSION[
"cont_media_pool"])
273 $ilCtrl->setParameter($this,
"subCmd",
"poolSelection");
274 if ($a_change_obj_ref)
276 $tb->addButton(
$lng->txt(
"cont_switch_to_media_pool"),
277 $ilCtrl->getLinkTarget($this,
"changeObjectReference"));
281 $tb->addButton(
$lng->txt(
"cont_switch_to_media_pool"),
282 $ilCtrl->getLinkTarget($this,
"insert"));
285 $ilCtrl->setParameter($this,
"subCmd",
"");
287 $html = $tb->getHTML();
289 $this->
getTabs($ilTabs,
true, $a_change_obj_ref);
290 $ilTabs->setSubTabActive(
"cont_mob_from_media_pool");
292 include_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
293 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
295 $ilCtrl->setParameter($this,
"subCmd",
"insertFromPool");
296 $tcmd = ($a_change_obj_ref)
297 ?
"changeObjectReference"
299 $tmode = ($a_change_obj_ref)
305 $html.= $mpool_table->getHTML();
323 $ilCtrl->setParameter($this,
"subCmd",
"insertFromPool");
324 if ($a_change_obj_ref)
326 $ilCtrl->redirect($this,
"changeObjectReference");
330 $ilCtrl->redirect($this,
"insert");
341 $this->
getTabs($ilTabs,
true, $a_change_obj_ref);
342 $ilTabs->setSubTabActive(
"cont_mob_from_media_pool");
344 include_once
"./Services/COPage/classes/class.ilPoolSelectorGUI.php";
346 if ($a_change_obj_ref)
348 $ilCtrl->setParameter($this,
"subCmd",
"poolSelection");
349 $exp =
new ilPoolSelectorGUI($this,
"changeObjectReference", $this,
"changeObjectReference");
353 $ilCtrl->setParameter($this,
"subCmd",
"poolSelection");
358 $exp->setTypeWhiteList(array(
"root",
"cat",
"grp",
"fold",
"crs",
"mep"));
359 $exp->setClickableTypes(array(
'mep'));
361 if (!$exp->handleCommand())
363 $tpl->setContent($exp->getHTML());
374 $this->
create(
false,
true);
386 include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
387 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
389 $this->content_obj->readMediaObject($fid);
390 $this->content_obj->updateObjectReference();
391 $this->updated = $this->pg_obj->update();
396 $ilCtrl->redirect($this,
"changeObjectReference");
399 $ilCtrl->redirect($this,
"editAlias");
405 function &
create($a_create_alias =
true, $a_change_obj_ref =
false)
409 if (
$_GET[
"subCmd"] ==
"insertFromPool")
411 if (is_array(
$_POST[
"id"]))
413 for($i = count(
$_POST[
"id"]) - 1; $i>=0; $i--)
415 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
417 include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
419 $this->content_obj->readMediaObject($fid);
420 $this->content_obj->createAlias($this->pg_obj,
$_GET[
"hier_id"], $this->pc_id);
422 $this->updated = $this->pg_obj->update();
425 $ilCtrl->returnToParent($this);
430 $mob_gui->initForm(
"create");
432 if (!$mob_gui->checkFormInput())
434 $this->form = $mob_gui->getForm();
435 $this->
insert(
"edpost",
"create_mob",
true);
439 include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
440 if ($a_change_obj_ref !=
true)
444 $this->content_obj->createMediaObject();
445 $media_obj = $this->content_obj->getMediaObject();
447 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
455 $this->content_obj->createAlias($this->pg_obj, $this->hier_id, $this->pc_id);
456 $this->updated = $this->pg_obj->update();
457 if ($this->updated ===
true)
459 $this->pg_obj->stripHierIDs();
460 $this->pg_obj->addHierIDs();
461 $ilCtrl->setParameter($this,
"hier_id", $this->content_obj->readHierId());
462 $ilCtrl->setParameter($this,
"pc_id", $this->content_obj->readPCId());
463 $this->content_obj->setHierId($this->content_obj->readHierId());
464 $this->
setHierId($this->content_obj->readHierId());
465 $this->content_obj->setPCId($this->content_obj->readPCId());
467 $this->ctrl->redirectByClass(
"ilobjmediaobjectgui",
"edit");
478 if ($a_change_obj_ref ==
true)
480 $this->content_obj->updateObjectReference();
481 $this->updated = $this->pg_obj->update();
482 $this->ctrl->redirect($this,
"editAlias");
498 $tpl->setContent($this->form_gui->getHTML());
508 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
514 $this->content_obj->getPcId());
515 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
519 $this->form_gui->addItem(
$title);
521 $this->lng->txt(
"cont_".strtolower($std_item->getLocationType())),
"st_location");
522 $this->form_gui->addItem($loc);
524 $this->lng->txt(
"cont_format"),
"st_format");
525 $this->form_gui->addItem($format);
529 $orig_size = $std_item->getOriginalSize();
531 " (".$orig_size[
"width"].
" x ".$orig_size[
"height"].
")",
"y");
533 $radio_size->addOption($op1);
536 include_once(
"./Services/MediaObjects/classes/class.ilWidthHeightInputGUI.php");
538 " / ".$lng->txt(
"cont_height"),
"st_width_height");
539 $width_height->setConstrainProportions(
true);
540 $op2->addSubItem($width_height);
542 $radio_size->addOption($op2);
543 $this->form_gui->addItem($radio_size);
549 $op1->addSubItem($def_cap);
551 $rad_caption->addOption($op1);
554 $caption->setCols(30);
555 $caption->setRows(2);
556 $op2->addSubItem($caption);
562 $rad_caption->addOption($op2);
563 $this->form_gui->addItem($rad_caption);
566 if (substr($std_item->getFormat(), 0, 5) ==
"image")
571 $op1->addSubItem($def_tr);
576 $rad_tr->addOption($op1);
577 $op2->addSubItem($tr);
578 $rad_tr->addOption($op2);
579 $this->form_gui->addItem($rad_tr);
580 $rad_tr->setInfo(
$lng->txt(
"text_repr_info"));
587 $std_item->getFormat()))
589 $par = $std_item->getParameters();
590 $def_str = ($par[
"autostart"] ==
"true")
591 ?
" (".
$lng->txt(
"yes").
")"
592 :
" (".$lng->txt(
"no").
")";
594 "st_derive_parameters");
596 $rad_auto->addOption($op1);
599 $op2->addSubItem($auto);
600 $rad_auto->addOption($op2);
601 $this->form_gui->addItem($rad_auto);
608 $op1->addSubItem($def_par);
609 $rad_parameters->addOption($op1);
614 $op2->addSubItem($par);
615 $rad_parameters->addOption($op2);
616 $this->form_gui->addItem($rad_parameters);
621 if($this->content_obj->getMediaObject()->hasFullScreenItem())
624 $this->content_obj->getPcId());
625 $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
628 $fs_sec->setTitle(
$lng->txt(
"cont_fullscreen"));
629 $this->form_gui->addItem($fs_sec);
635 $radio_prop->addOption($op1);
636 $op2 =
new ilRadioOption($this->lng->txt(
"cont_".strtolower($full_item->getLocationType())).
": ".
637 $full_item->getLocation(),
"y");
638 $radio_prop->addOption($op2);
639 $this->form_gui->addItem($radio_prop);
643 $this->lng->txt(
"cont_format"),
"full_format");
644 $this->form_gui->addItem($format);
648 $fw_size = $std_item->getOriginalSize();
650 " (".$fw_size[
"width"].
" x ".$fw_size[
"height"].
")",
"y");
652 $radio_size->addOption($op1);
655 include_once(
"./Services/MediaObjects/classes/class.ilWidthHeightInputGUI.php");
657 " / ".$lng->txt(
"cont_height"),
"full_width_height");
658 $width_height->setConstrainProportions(
true);
659 $op2->addSubItem($width_height);
661 $radio_size->addOption($op2);
662 $this->form_gui->addItem($radio_size);
668 $op1->addSubItem($def_cap);
670 $rad_caption->addOption($op1);
673 $caption->setCols(30);
674 $caption->setRows(2);
675 $op2->addSubItem($caption);
681 $rad_caption->addOption($op2);
682 $this->form_gui->addItem($rad_caption);
685 if (substr($full_item->getFormat(), 0, 5) ==
"image")
690 $op1->addSubItem($def_tr);
695 $rad_tr->addOption($op1);
696 $op2->addSubItem($tr);
697 $rad_tr->addOption($op2);
698 $this->form_gui->addItem($rad_tr);
699 $rad_tr->setInfo(
$lng->txt(
"text_repr_info"));
706 $full_item->getFormat()))
708 $par = $full_item->getParameters();
709 $def_str = ($par[
"autostart"] ==
"true")
710 ?
" (".
$lng->txt(
"yes").
")"
711 :
" (".$lng->txt(
"no").
")";
713 "full_derive_parameters");
715 $rad_auto->addOption($op1);
718 $op2->addSubItem($auto);
719 $rad_auto->addOption($op2);
720 $this->form_gui->addItem($rad_auto);
727 $op1->addSubItem($def_par);
728 $rad_parameters->addOption($op1);
733 $op2->addSubItem($par);
734 $rad_parameters->addOption($op2);
735 $this->form_gui->addItem($rad_parameters);
740 $this->form_gui->setTitle(
$lng->txt(
"cont_edit_mob_alias_prop"));
741 $this->form_gui->addCommandButton(
"saveAliasProperties",
$lng->txt(
"save"));
743 if (
$lm_set->get(
"replace_mob_feature"))
745 $this->form_gui->addCommandButton(
"changeObjectReference",
$lng->txt(
"cont_change_object_reference"));
747 $this->form_gui->setFormAction(
$ilCtrl->getFormAction($this));
759 $this->content_obj->getPcId());
760 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
762 $values[
"title"] = $this->content_obj->getMediaObject()->getTitle();
763 $values[
"st_location"] = $std_item->getLocation();
764 $values[
"st_format"] = $std_item->getFormat();
767 $values[
"st_width_height"][
"width"] = $std_alias_item->getWidth();
768 $values[
"st_width_height"][
"height"] = $std_alias_item->getHeight();
769 $values[
"st_width_height"][
"constr_prop"] =
true;
772 $values[
"st_caption"] = $std_alias_item->getCaption();
773 if (trim($std_item->getCaption()) ==
"")
775 $values[
"def_caption"] =
"<i>".$lng->txt(
"cont_no_caption").
"</i>";
779 $values[
"def_caption"] = $std_item->getCaption();
783 $values[
"st_text_representation"] = $std_alias_item->getTextRepresentation();
784 if (trim($std_item->getTextRepresentation()) ==
"")
786 $values[
"def_text_representation"] =
"<i>".$lng->txt(
"cont_no_text").
"</i>";
790 $values[
"def_text_representation"] = $std_item->getTextRepresentation();
795 $std_item->getFormat()))
797 $par = $std_alias_item->getParameters();
798 if ($par[
"autostart"] ==
"true")
800 $values[
"st_autostart"] =
true;
805 $values[
"st_parameters"] = $std_alias_item->getParameterString();
809 $values[
"st_derive_size"] = $std_alias_item->definesSize()
812 if ($values[
"st_derive_size"] ==
"y")
814 $values[
"st_width_height"][
"width"] = $std_item->getWidth();
815 $values[
"st_width_height"][
"height"] = $std_item->getHeight();
817 $values[
"st_derive_caption"] = $std_alias_item->definesCaption()
820 $values[
"st_derive_text_representation"] = $std_alias_item->definesTextRepresentation()
823 $values[
"st_derive_parameters"] = $std_alias_item->definesParameters()
826 if (trim($std_item->getParameterString()) ==
"")
828 $values[
"def_parameters"] =
"<i>".$lng->txt(
"cont_no_parameters").
"</i>";
832 $values[
"def_parameters"] = $std_item->getParameterString();
836 if($this->content_obj->getMediaObject()->hasFullScreenItem())
839 $this->content_obj->getPcId());
840 $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
842 $values[
"fullscreen"] =
"n";
843 if ($full_alias_item->exists())
845 $values[
"fullscreen"] =
"y";
848 $values[
"full_location"] = $full_item->getLocation();
849 $values[
"full_format"] = $full_item->getFormat();
850 $values[
"full_width_height"][
"width"] = $full_alias_item->getWidth();
851 $values[
"full_width_height"][
"height"] = $full_alias_item->getHeight();
852 $values[
"full_width_height"][
"constr_prop"] =
true;
853 $values[
"full_caption"] = $full_alias_item->getCaption();
854 if (trim($full_item->getCaption()) ==
"")
856 $values[
"full_def_caption"] =
"<i>".$lng->txt(
"cont_no_caption").
"</i>";
860 $values[
"full_def_caption"] = $full_item->getCaption();
862 $values[
"full_text_representation"] = $full_alias_item->getTextRepresentation();
863 if (trim($full_item->getTextRepresentation()) ==
"")
865 $values[
"full_def_text_representation"] =
"<i>".$lng->txt(
"cont_no_text").
"</i>";
869 $values[
"full_def_text_representation"] = $full_item->getTextRepresentation();
871 $values[
"full_parameters"] = $full_alias_item->getParameterString();
872 $values[
"full_derive_size"] = $full_alias_item->definesSize()
875 if ($values[
"full_derive_size"] ==
"y")
877 $values[
"full_width_height"][
"width"] = $full_item->getWidth();
878 $values[
"full_width_height"][
"height"] = $full_item->getHeight();
880 $values[
"full_derive_caption"] = $full_alias_item->definesCaption()
883 $values[
"full_derive_text_representation"] = $full_alias_item->definesTextRepresentation()
889 $full_item->getFormat()))
891 $par = $full_alias_item->getParameters();
892 if ($par[
"autostart"] ==
"true")
894 $values[
"full_autostart"] =
true;
899 $values[
"full_parameters"] = $full_alias_item->getParameterString();
902 $values[
"full_derive_parameters"] = $full_alias_item->definesParameters()
905 if (trim($full_item->getParameterString()) ==
"")
907 $values[
"full_def_parameters"] =
"<i>".$lng->txt(
"cont_no_parameters").
"</i>";
911 $values[
"full_def_parameters"] = $full_item->getParameterString();
916 $this->form_gui->setValuesByArray($values);
925 $this->content_obj->getPcId());
927 $this->content_obj->getPcId());
928 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
929 $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
932 if(
$_POST[
"st_derive_size"] ==
"y")
934 $std_alias_item->deriveSize();
943 if(
$_POST[
"st_derive_caption"] ==
"y")
945 $std_alias_item->deriveCaption();
953 if(
$_POST[
"st_derive_text_representation"] ==
"y")
955 $std_alias_item->deriveTextRepresentation();
963 if(
$_POST[
"st_derive_parameters"] ==
"y")
965 $std_alias_item->deriveParameters();
970 $std_item->getFormat()))
972 if (
$_POST[
"st_autostart"])
987 if($this->content_obj->getMediaObject()->hasFullscreenItem())
989 if (
$_POST[
"fullscreen"] ==
"y")
991 if (!$full_alias_item->exists())
993 $full_alias_item->insert();
997 if(
$_POST[
"full_derive_size"] ==
"y")
999 $full_alias_item->deriveSize();
1008 if(
$_POST[
"full_derive_caption"] ==
"y")
1010 $full_alias_item->deriveCaption();
1018 if(
$_POST[
"full_derive_text_representation"] ==
"y")
1020 $full_alias_item->deriveTextRepresentation();
1028 if(
$_POST[
"full_derive_parameters"] ==
"y")
1030 $full_alias_item->deriveParameters();
1035 $full_item->getFormat()))
1037 if (
$_POST[
"full_autostart"])
1054 if ($full_alias_item->exists())
1056 $full_alias_item->delete();
1061 $this->updated = $this->pg_obj->update();
1062 if ($this->updated ===
true)
1064 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1068 $this->pg_obj->addHierIDs();
1078 $this->
ilias->account->addObjectToClipboard($this->content_obj->getMediaObject()->getId(), $this->content_obj->getMediaObject()->getType()
1079 , $this->content_obj->getMediaObject()->getTitle());
1081 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1090 $this->content_obj->getPcId());
1091 $std_alias_item->setHorizontalAlign(
"Center");
1092 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
1093 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1102 $this->content_obj->getPcId());
1103 $std_alias_item->setHorizontalAlign(
"Left");
1104 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
1105 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1114 $this->content_obj->getPcId());
1115 $std_alias_item->setHorizontalAlign(
"Right");
1116 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
1117 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1126 $this->content_obj->getPcId());
1127 $std_alias_item->setHorizontalAlign(
"LeftFloat");
1128 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
1129 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1138 $this->content_obj->getPcId());
1139 $std_alias_item->setHorizontalAlign(
"RightFloat");
1140 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
1141 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1152 if (count($chars) > 1 ||
1153 ($this->content_obj->getClass() !=
"" && $this->content_obj->getClass() !=
"Media"))
1170 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1172 $form->setFormAction(
$ilCtrl->getFormAction($this));
1173 $form->setTitle($this->lng->txt(
"cont_edit_style"));
1176 require_once(
"./Services/Form/classes/class.ilAdvSelectInputGUI.php");
1181 if (is_object($this->content_obj))
1183 if ($chars[$a_seleted_value] ==
"" && ($this->content_obj->getClass() !=
""))
1185 $chars = array_merge(
1186 array($this->content_obj->getClass() => $this->content_obj->getClass()),
1191 $selected = $this->content_obj->getClass();
1192 if ($selected ==
"")
1194 $selected =
"MediaContainer";
1197 foreach ($chars as $k => $char)
1199 $html =
'<div class="ilCOPgEditStyleSelectionItem">'.
1201 $char_prop->addOption($k, $char,
$html);
1204 $char_prop->setValue($selected);
1205 $form->addItem($char_prop);
1208 $form->addCommandButton(
"saveStyle",
$lng->txt(
"save"));
1210 $html = $form->getHTML();
1220 $this->content_obj->setClass(
$_POST[
"characteristic"]);
1221 $this->updated = $this->pg_obj->update();
1222 if ($this->updated ===
true)
1224 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
1228 $this->pg_obj->addHierIDs();
1239 function getTabs(&$tab_gui, $a_create =
false, $a_change_obj_ref =
false)
1247 $ilTabs->addTarget(
"cont_style",
1248 $ilCtrl->getLinkTarget($this,
"editStyle"),
"editStyle",
1252 $ilTabs->addTarget(
"cont_mob_inst_prop",
1253 $ilCtrl->getLinkTarget($this,
"editAlias"),
"editAlias",
1258 $st_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
1259 if (is_object($st_item))
1261 $format = $st_item->getFormat();
1262 if (substr($format, 0, 5) ==
"image" && !is_int(strpos($format,
"svg")))
1264 $ilTabs->addTarget(
"cont_inst_map_areas",
1265 $ilCtrl->getLinkTargetByClass(
"ilpcimagemapeditorgui",
"editMapAreas"), array(),
1266 "ilpcimagemapeditorgui");
1273 if ($a_change_obj_ref)
1275 $cmd =
"changeObjectReference";
1282 $ilCtrl->setParameter($this,
"subCmd",
"insertNew");
1283 $ilTabs->addSubTabTarget(
"cont_new_mob",
1286 $ilCtrl->setParameter($this,
"subCmd",
"insertFromPool");
1287 $ilTabs->addSubTabTarget(
"cont_mob_from_media_pool",
1289 $ilCtrl->setParameter($this,
"subCmd",
"");
An exception for terminatinating execution or to throw for unit testing.
This class represents a non editable value in a property form.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
User interface class for page content map editor.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
getHierId()
get hierarchical id in dom object
getCharacteristicsOfCurrentStyle($a_type)
Get characteristics of current style.
displayValidationError()
display validation errors
getCharacteristics()
Get characteristics.
setCharacteristics($a_chars)
Set Characteristics.
setHierId($a_hier_id)
get hierarchical id in dom object
Select media pool for adding objects into pages.
This class represents an option in a radio group.
This class represents a text area property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static extractParameterString($a_parstr)
extracts parameter value pairs from a string into an array
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
redirection script todo: (a better solution should control the processing via a xml file)