4 require_once (
"./Services/COPage/classes/class.ilPageContentGUI.php");
 
    5 require_once (
"./Services/COPage/classes/class.ilMediaAliasItem.php");
 
    6 require_once (
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
   41                 $this->header = $a_title;
 
   56                 $this->enabledmapareas = $a_enabledmapareas;
 
   66                 return $this->enabledmapareas;
 
   79                 $next_class = $this->ctrl->getNextClass($this);
 
   82                 $cmd = $this->ctrl->getCmd();
 
   84                 if (is_object ($this->content_obj))
 
   87                         $this->
getTabs($this->tabs_gui);
 
   89                         $mob = $this->content_obj->getMediaObject();
 
   92                                 $tpl->setVariable(
"HEADER", $lng->txt(
"mob").
": ".
 
   93                                         $this->content_obj->getMediaObject()->getTitle());
 
   94                                 $mob_gui =& 
new ilObjMediaObjectGUI(
"", $this->content_obj->getMediaObject()->getId(),
false, 
false);
 
   97                                 $mob_gui->getTabs($this->tabs_gui);
 
  106                         case "ilobjmediaobjectgui":
 
  107                                 include_once (
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
  109                                 $this->tpl->setTitle($this->lng->txt(
"mob").
": ".
 
  110                                         $this->content_obj->getMediaObject()->getTitle());
 
  111                                 $mob_gui =& 
new ilObjMediaObjectGUI(
"", $this->content_obj->getMediaObject()->getId(),
false, 
false);
 
  114                                 $ret =& $this->ctrl->forwardCommand($mob_gui);
 
  118                         case "ilpcimagemapeditorgui":
 
  119                                 require_once(
"./Services/COPage/classes/class.ilPCImageMapEditorGUI.php");
 
  120                                 $ilTabs->setTabActive(
"cont_inst_map_areas");
 
  123                                 $ret = $this->ctrl->forwardCommand($image_map_edit);
 
  124                                 $tpl->setContent(
$ret);
 
  138         function insert($a_post_cmd = 
"edpost", $a_submit_cmd = 
"create_mob")
 
  142                 if (
$_GET[
"subCmd"] == 
"insertNew")
 
  144                         $_SESSION[
"cont_media_insert"] = 
"insertNew";
 
  146                 if (
$_GET[
"subCmd"] == 
"insertFromPool")
 
  148                         $_SESSION[
"cont_media_insert"] = 
"insertFromPool";
 
  151                 if ((
$_GET[
"subCmd"] == 
"") && 
$_SESSION[
"cont_media_insert"] != 
"")
 
  156                 switch (
$_GET[
"subCmd"])
 
  158                         case "insertFromPool":
 
  162                         case "poolSelection":
 
  173                                 $ilTabs->setSubTabActive(
"cont_new_mob");
 
  175                                 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
  177                                 $mob_gui->initForm(
"create");
 
  178                                 $form = $mob_gui->getForm();
 
  179                                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  180                                 $form->clearCommandButtons();
 
  181                                 $form->addCommandButton(
"create_mob", $lng->txt(
"save"));
 
  182                                 $form->addCommandButton(
"cancelCreate", $lng->txt(
"cancel"));
 
  186                                 $tpl->setContent($form->getHTML());
 
  200                 if (
$_GET[
"subCmd"] == 
"insertNew")
 
  202                         $_SESSION[
"cont_media_insert"] = 
"insertNew";
 
  204                 if (
$_GET[
"subCmd"] == 
"insertFromPool")
 
  206                         $_SESSION[
"cont_media_insert"] = 
"insertFromPool";
 
  209                 if ((
$_GET[
"subCmd"] == 
"") && 
$_SESSION[
"cont_media_insert"] != 
"")
 
  214                 switch (
$_GET[
"subCmd"])
 
  216                         case "insertFromPool":
 
  220                         case "poolSelection":
 
  230                                 $ilCtrl->setParameter($this, 
"subCmd", 
"changeObjectReference");
 
  231                                 $this->
getTabs($ilTabs, 
true, 
true);
 
  232                                 $ilTabs->setSubTabActive(
"cont_new_mob");
 
  237                                 $mob_gui->initForm(
"create");
 
  238                                 $form = $mob_gui->getForm();
 
  239                                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  240                                 $form->clearCommandButtons();
 
  241                                 $form->addCommandButton(
"createNewObjectReference", $lng->txt(
"save"));
 
  242                                 $form->addCommandButton(
"cancelCreate", $lng->txt(
"cancel"));
 
  243                                 $this->tpl->setContent($form->getHTML());                               
 
  256                 if (
$_SESSION[
"cont_media_pool"] != 
"" &&
 
  257                         $ilAccess->checkAccess(
"write", 
"", 
$_SESSION[
"cont_media_pool"])
 
  260                         $tpl->addBlockfile(
"BUTTONS", 
"buttons", 
"tpl.buttons.html");
 
  261                         $tpl->setCurrentBlock(
"btn_cell");
 
  262                         $ilCtrl->setParameter($this, 
"subCmd", 
"poolSelection");
 
  263                         if ($a_change_obj_ref)
 
  265                                 $tpl->setVariable(
"BTN_LINK",
 
  266                                         $ilCtrl->getLinkTarget($this, 
"changeObjectReference"));
 
  270                                 $tpl->setVariable(
"BTN_LINK",
 
  271                                         $ilCtrl->getLinkTarget($this, 
"insert"));
 
  273                         $ilCtrl->setParameter($this, 
"subCmd", 
"");
 
  274                         $tpl->setVariable(
"BTN_TXT", $lng->txt(
"cont_select_media_pool"));
 
  275                         $tpl->parseCurrentBlock();
 
  277                         $this->
getTabs($ilTabs, 
true, $a_change_obj_ref);
 
  278                         $ilTabs->setSubTabActive(
"cont_mob_from_media_pool");
 
  280                         include_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
 
  281                         include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolTableGUI.php");
 
  283                         $ilCtrl->setParameter($this, 
"subCmd", 
"insertFromPool");
 
  284                         $tcmd = ($a_change_obj_ref)
 
  285                                 ? 
"changeObjectReference" 
  287                         $tmode = ($a_change_obj_ref)
 
  293                         $tpl->setContent($mpool_table->getHTML());
 
  309                 $ilCtrl->setParameter($this, 
"subCmd", 
"insertFromPool");
 
  310                 if ($a_change_obj_ref)
 
  312                         $ilCtrl->redirect($this, 
"changeObjectReference");
 
  316                         $ilCtrl->redirect($this, 
"insert");
 
  327                 $this->
getTabs($ilTabs, 
true, $a_change_obj_ref);
 
  328                 $ilTabs->setSubTabActive(
"cont_mob_from_media_pool");
 
  330                 include_once 
"./Services/COPage/classes/class.ilPoolSelectorGUI.php";
 
  332                 if ($a_change_obj_ref)
 
  334                         $exp = 
new ilPoolSelectorGUI($this->ctrl->getLinkTarget($this, 
"changeObjectReference"));
 
  340                 if (
$_GET[
"expand"] == 
"")
 
  342                         $expanded = $tree->readRootId();
 
  346                         $expanded = 
$_GET[
"expand"];
 
  348                 $exp->setExpand($expanded);
 
  350                 $exp->setTargetGet(
"sel_id");
 
  351                 $this->ctrl->setParameter($this, 
"target_type", $a_type);
 
  352                 $ilCtrl->setParameter($this, 
"subCmd", 
"poolSelection");
 
  353                 if ($a_change_obj_ref)
 
  355                         $exp->setParamsGet($this->ctrl->getParameterArray($this, 
"changeObjectReference"));
 
  359                         $exp->setParamsGet($this->ctrl->getParameterArray($this, 
"insert"));
 
  363                 $exp->setFiltered(
true);
 
  365                 $exp->addFilter(
"root");
 
  366                 $exp->addFilter(
"cat");
 
  367                 $exp->addFilter(
"grp");
 
  368                 $exp->addFilter(
"fold");
 
  369                 $exp->addFilter(
"crs");
 
  370                 $exp->addFilter(
"mep");
 
  372                 $sel_types = array(
'mep');
 
  376                 $tpl->setContent($exp->getOutput());
 
  386                 $this->
create(
false, 
true);
 
  398                         include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
 
  399                         include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
  401                         $this->content_obj->readMediaObject($fid);
 
  402                         $this->content_obj->updateObjectReference();
 
  403                         $this->updated = $this->pg_obj->update();
 
  408                         $ilCtrl->redirect($this, 
"changeObjectReference");
 
  411                 $ilCtrl->redirect($this, 
"editAlias");
 
  417         function &
create($a_create_alias = 
true, $a_change_obj_ref = 
false)
 
  421                 if (
$_GET[
"subCmd"] == 
"insertFromPool")
 
  423                         if (is_array(
$_POST[
"id"]))
 
  425                                 for($i = count(
$_POST[
"id"]) - 1; $i>=0; $i--)
 
  427                                         include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
 
  429                                         include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
 
  431                                         $this->content_obj->readMediaObject($fid);
 
  432                                         $this->content_obj->createAlias($this->pg_obj, 
$_GET[
"hier_id"], $this->pc_id);
 
  434                                 $this->updated = $this->pg_obj->update();
 
  437                         $ilCtrl->returnToParent($this);
 
  441                 include_once(
"./Services/COPage/classes/class.ilPCMediaObject.php");
 
  442                 if ($a_change_obj_ref != 
true)
 
  446                 $this->content_obj->createMediaObject();
 
  447                 $media_obj = $this->content_obj->getMediaObject();
 
  449                 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
 
  457                         $this->content_obj->createAlias($this->pg_obj, $this->hier_id, $this->pc_id);
 
  458                         $this->updated = $this->pg_obj->update();
 
  459                         if ($this->updated === 
true)
 
  461                                 $this->pg_obj->stripHierIDs();
 
  462                                 $this->pg_obj->addHierIDs();
 
  463                                 $ilCtrl->setParameter($this, 
"hier_id", $this->content_obj->readHierId());
 
  464                                 $ilCtrl->setParameter($this, 
"pc_id", $this->content_obj->readPCId());
 
  465                                 $this->content_obj->setHierId($this->content_obj->readHierId());
 
  466                                 $this->
setHierId($this->content_obj->readHierId());
 
  467                                 $this->content_obj->setPCId($this->content_obj->readPCId());
 
  469                                 $this->ctrl->redirectByClass(
"ilobjmediaobjectgui", 
"edit");
 
  480                         if ($a_change_obj_ref == 
true)
 
  482                                 $this->content_obj->updateObjectReference();
 
  483                                 $this->updated = $this->pg_obj->update();
 
  484                                 $this->ctrl->redirect($this, 
"editAlias");
 
  500                 $tpl->setContent($this->form_gui->getHTML());
 
  510                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  516                         $this->content_obj->getPcId());
 
  517                 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
 
  521                 $this->form_gui->addItem(
$title);
 
  523                         $this->lng->txt(
"cont_".strtolower($std_item->getLocationType())), 
"st_location");
 
  524                 $this->form_gui->addItem($loc);
 
  526                         $this->lng->txt(
"cont_format"), 
"st_format");
 
  527                 $this->form_gui->addItem($format);
 
  532                         " (".$std_item->getWidth().
" x ".$std_item->
getHeight().
")", 
"y");
 
  534                 $radio_size->addOption($op1);
 
  537                         include_once(
"./Services/MediaObjects/classes/class.ilWidthHeightInputGUI.php");
 
  539                                 " / ".$lng->txt(
"cont_height"), 
"st_width_height");
 
  543                 $radio_size->addOption($op2);
 
  544                 $this->form_gui->addItem($radio_size);
 
  553                 $rad_caption->addOption($op1);
 
  554                         $caption->setSize(40);
 
  555                         $caption->setMaxLength(200);
 
  557                 $rad_caption->addOption($op2);
 
  558                 $this->form_gui->addItem($rad_caption);
 
  561                 if (substr($std_item->getFormat(), 0, 5) == 
"image")
 
  571                         $rad_tr->addOption($op1);
 
  573                         $rad_tr->addOption($op2);
 
  574                         $this->form_gui->addItem($rad_tr);
 
  575                         $rad_tr->setInfo($lng->txt(
"text_repr_info"));
 
  582                                 $std_item->getFormat()))        
 
  585                                 $def_str = ($par[
"autostart"] == 
"true")
 
  586                                         ? 
" (".$lng->txt(
"yes").
")" 
  587                                         : 
" (".$lng->txt(
"no").
")";
 
  589                                         "st_derive_parameters");
 
  590                                 $op1 = 
new ilRadioOption($lng->txt(
"cont_default").$def_str, 
"y");
 
  591                                 $rad_auto->addOption($op1);
 
  595                                 $rad_auto->addOption($op2);
 
  596                                 $this->form_gui->addItem($rad_auto);
 
  600                                 $rad_parameters = 
new ilRadioGroupInputGUI($lng->txt(
"cont_parameter"), 
"st_derive_parameters");
 
  604                                 $rad_parameters->addOption($op1);
 
  610                                 $rad_parameters->addOption($op2);
 
  611                                 $this->form_gui->addItem($rad_parameters);
 
  616                 if($this->content_obj->getMediaObject()->hasFullScreenItem())
 
  619                                 $this->content_obj->getPcId());
 
  620                         $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
 
  623                         $fs_sec->setTitle($lng->txt(
"cont_fullscreen"));
 
  624                         $this->form_gui->addItem($fs_sec);
 
  630                         $radio_prop->addOption($op1);
 
  631                         $op2 = 
new ilRadioOption($this->lng->txt(
"cont_".strtolower($full_item->getLocationType())).
": ".
 
  632                                 $full_item->getLocation(), 
"y");
 
  633                         $radio_prop->addOption($op2);
 
  634                         $this->form_gui->addItem($radio_prop);
 
  638                                 $this->lng->txt(
"cont_format"), 
"full_format");
 
  639                         $this->form_gui->addItem($format);
 
  644                                 " (".$full_item->getWidth().
" x ".$full_item->
getHeight().
")", 
"y");
 
  646                         $radio_size->addOption($op1);
 
  649                                 include_once(
"./Services/MediaObjects/classes/class.ilWidthHeightInputGUI.php");
 
  651                                         " / ".$lng->txt(
"cont_height"), 
"full_width_height");
 
  655                         $radio_size->addOption($op2);
 
  656                         $this->form_gui->addItem($radio_size);
 
  665                         $rad_caption->addOption($op1);
 
  666                                 $caption->setSize(40);
 
  667                                 $caption->setMaxLength(200);
 
  669                         $rad_caption->addOption($op2);
 
  670                         $this->form_gui->addItem($rad_caption);
 
  673                         if (substr($full_item->getFormat(), 0, 5) == 
"image")
 
  683                                 $rad_tr->addOption($op1);
 
  685                                 $rad_tr->addOption($op2);
 
  686                                 $this->form_gui->addItem($rad_tr);
 
  687                                 $rad_tr->setInfo($lng->txt(
"text_repr_info"));
 
  694                                         $full_item->getFormat()))       
 
  697                                         $def_str = ($par[
"autostart"] == 
"true")
 
  698                                                 ? 
" (".$lng->txt(
"yes").
")" 
  699                                                 : 
" (".$lng->txt(
"no").
")";
 
  701                                                 "full_derive_parameters");
 
  702                                         $op1 = 
new ilRadioOption($lng->txt(
"cont_default").$def_str, 
"y");
 
  703                                         $rad_auto->addOption($op1);
 
  707                                         $rad_auto->addOption($op2);
 
  708                                         $this->form_gui->addItem($rad_auto);
 
  712                                         $rad_parameters = 
new ilRadioGroupInputGUI($lng->txt(
"cont_parameter"), 
"full_derive_parameters");
 
  716                                         $rad_parameters->addOption($op1);
 
  722                                         $rad_parameters->addOption($op2);
 
  723                                         $this->form_gui->addItem($rad_parameters);
 
  728                 $this->form_gui->setTitle($lng->txt(
"cont_edit_mob_alias_prop"));
 
  729                 $this->form_gui->addCommandButton(
"saveAliasProperties", $lng->txt(
"save"));
 
  731                 if ($lm_set->get(
"replace_mob_feature"))
 
  733                         $this->form_gui->addCommandButton(
"changeObjectReference", $lng->txt(
"cont_change_object_reference"));
 
  735                 $this->form_gui->setFormAction($ilCtrl->getFormAction($this));          
 
  747                         $this->content_obj->getPcId());
 
  748                 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
 
  750                 $values[
"title"] = $this->content_obj->getMediaObject()->getTitle();
 
  751                 $values[
"st_location"] = $std_item->getLocation();
 
  752                 $values[
"st_format"] = $std_item->getFormat();
 
  755                 $values[
"st_width_height"][
"width"] = $std_alias_item->
getWidth();
 
  756                 $values[
"st_width_height"][
"height"] = $std_alias_item->getHeight();
 
  757                 $values[
"st_width_height"][
"constr_prop"] = 
true;
 
  760                 $values[
"st_caption"] = $std_alias_item->getCaption();
 
  763                         $values[
"def_caption"] = 
"<i>".$lng->txt(
"cont_no_caption").
"</i>";
 
  767                         $values[
"def_caption"] = $std_item->
getCaption();
 
  771                 $values[
"st_text_representation"] = $std_alias_item->getTextRepresentation();
 
  774                         $values[
"def_text_representation"] = 
"<i>".$lng->txt(
"cont_no_text").
"</i>";
 
  783                         $std_item->getFormat()))        
 
  785                         $par = $std_alias_item->getParameters();
 
  786                         if ($par[
"autostart"] == 
"true")
 
  788                                 $values[
"st_autostart"] = 
true;
 
  793                         $values[
"st_parameters"] = $std_alias_item->getParameterString();
 
  797                 $values[
"st_derive_size"] = $std_alias_item->definesSize()
 
  800                 if ($values[
"st_derive_size"] == 
"y")
 
  802                         $values[
"st_width_height"][
"width"] = $std_item->
getWidth();
 
  803                         $values[
"st_width_height"][
"height"] = $std_item->
getHeight();
 
  805                 $values[
"st_derive_caption"] = $std_alias_item->definesCaption()
 
  808                 $values[
"st_derive_text_representation"] = $std_alias_item->definesTextRepresentation()
 
  811                 $values[
"st_derive_parameters"] = $std_alias_item->definesParameters()
 
  816                         $values[
"def_parameters"] = 
"<i>".$lng->txt(
"cont_no_parameters").
"</i>";
 
  824                 if($this->content_obj->getMediaObject()->hasFullScreenItem())
 
  827                                 $this->content_obj->getPcId());
 
  828                         $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
 
  830                         $values[
"fullscreen"] = 
"n";
 
  831                         if ($full_alias_item->exists())
 
  833                                 $values[
"fullscreen"] = 
"y";
 
  836                         $values[
"full_location"] = $full_item->getLocation();
 
  837                         $values[
"full_format"] = $full_item->getFormat();
 
  838                         $values[
"full_width_height"][
"width"] = $full_alias_item->
getWidth();
 
  839                         $values[
"full_width_height"][
"height"] = $full_alias_item->getHeight();
 
  840                         $values[
"full_width_height"][
"constr_prop"] = 
true;
 
  841                         $values[
"full_caption"] = $full_alias_item->getCaption();
 
  844                                 $values[
"full_def_caption"] = 
"<i>".$lng->txt(
"cont_no_caption").
"</i>";
 
  848                                 $values[
"full_def_caption"] = $full_item->
getCaption();
 
  850                         $values[
"full_text_representation"] = $full_alias_item->getTextRepresentation();
 
  853                                 $values[
"full_def_text_representation"] = 
"<i>".$lng->txt(
"cont_no_text").
"</i>";
 
  859                         $values[
"full_parameters"] = $full_alias_item->getParameterString();
 
  860                         $values[
"full_derive_size"] = $full_alias_item->definesSize()
 
  863                         if ($values[
"full_derive_size"] == 
"y")
 
  865                                 $values[
"full_width_height"][
"width"] = $full_item->
getWidth();
 
  866                                 $values[
"full_width_height"][
"height"] = $full_item->
getHeight();
 
  868                         $values[
"full_derive_caption"] = $full_alias_item->definesCaption()
 
  871                         $values[
"full_derive_text_representation"] = $full_alias_item->definesTextRepresentation()
 
  877                                 $full_item->getFormat()))       
 
  879                                 $par = $full_alias_item->getParameters();
 
  880                                 if ($par[
"autostart"] == 
"true")
 
  882                                         $values[
"full_autostart"] = 
true;
 
  887                                 $values[
"full_parameters"] = $full_alias_item->getParameterString();
 
  890                         $values[
"full_derive_parameters"] = $full_alias_item->definesParameters()
 
  895                                 $values[
"full_def_parameters"] = 
"<i>".$lng->txt(
"cont_no_parameters").
"</i>";
 
  904                 $this->form_gui->setValuesByArray($values);
 
  913                         $this->content_obj->getPcId());
 
  915                         $this->content_obj->getPcId());
 
  916                 $std_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
 
  917                 $full_item = $this->content_obj->getMediaObject()->getMediaItem(
"Fullscreen");
 
  920                 if(
$_POST[
"st_derive_size"] == 
"y")
 
  931                 if(
$_POST[
"st_derive_caption"] == 
"y")
 
  933                         $std_alias_item->deriveCaption();
 
  941                 if(
$_POST[
"st_derive_text_representation"] == 
"y")
 
  943                         $std_alias_item->deriveTextRepresentation();
 
  951                 if(
$_POST[
"st_derive_parameters"] == 
"y")
 
  953                         $std_alias_item->deriveParameters();
 
  958                                 $std_item->getFormat()))        
 
  960                                 if (
$_POST[
"st_autostart"])
 
  975                 if($this->content_obj->getMediaObject()->hasFullscreenItem())
 
  977                         if (
$_POST[
"fullscreen"] ==  
"y")
 
  979                                 if (!$full_alias_item->
exists())
 
  981                                         $full_alias_item->
insert();
 
  985                                 if(
$_POST[
"full_derive_size"] == 
"y")
 
  996                                 if(
$_POST[
"full_derive_caption"] == 
"y")
 
 1006                                 if(
$_POST[
"full_derive_text_representation"] == 
"y")
 
 1016                                 if(
$_POST[
"full_derive_parameters"] == 
"y")
 
 1023                                                 $full_item->getFormat()))       
 
 1025                                                 if (
$_POST[
"full_autostart"])
 
 1042                                 if ($full_alias_item->
exists())
 
 1044                                         $full_alias_item->
delete();
 
 1049                 $this->updated = $this->pg_obj->update();
 
 1050                 if ($this->updated === 
true)
 
 1052                         $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1056                         $this->pg_obj->addHierIDs();
 
 1066                 $this->ilias->account->addObjectToClipboard($this->content_obj->getMediaObject()->getId(), $this->content_obj->getMediaObject()->getType()
 
 1067                         , $this->content_obj->getMediaObject()->getTitle());
 
 1069                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1078                         $this->content_obj->getPcId());
 
 1080                 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
 
 1081                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1090                         $this->content_obj->getPcId());
 
 1092                 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
 
 1093                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1102                         $this->content_obj->getPcId());
 
 1104                 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
 
 1105                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1114                         $this->content_obj->getPcId());
 
 1116                 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
 
 1117                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1126                         $this->content_obj->getPcId());
 
 1128                 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
 
 1129                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1140                 if (count($chars) > 1 ||
 
 1141                         ($this->content_obj->getClass() != 
"" && $this->content_obj->getClass() != 
"Media"))
 
 1158                 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
 1160                 $form->setFormAction($ilCtrl->getFormAction($this));
 
 1161                 $form->setTitle($this->lng->txt(
"cont_edit_style"));
 
 1164                 require_once(
"./Services/Form/classes/class.ilAdvSelectInputGUI.php");
 
 1169                 if (is_object($this->content_obj))
 
 1171                         if ($chars[$a_seleted_value] == 
"" && ($this->content_obj->getClass() != 
""))
 
 1173                                 $chars = array_merge(
 
 1174                                         array($this->content_obj->getClass() => $this->content_obj->getClass()),
 
 1179                 $selected = $this->content_obj->getClass();
 
 1180                 if ($selected == 
"")
 
 1182                         $selected = 
"MediaContainer";
 
 1185                 foreach ($chars as $k => $char)
 
 1187                         $html = 
'<table class="ilc_media_cont_'.$k.
'"><tr><td>'.
 
 1188                                 $char.
'</td></tr></table>';
 
 1189                         $char_prop->addOption($k, $char, $html);
 
 1192                 $char_prop->setValue($selected);
 
 1193                 $form->addItem($char_prop);
 
 1196                 $form->addCommandButton(
"saveStyle", $lng->txt(
"save"));
 
 1198                 $html = $form->getHTML();
 
 1199                 $tpl->setContent($html);
 
 1208                 $this->content_obj->setClass(
$_POST[
"characteristic"]);
 
 1209                 $this->updated = $this->pg_obj->update();
 
 1210                 if ($this->updated === 
true)
 
 1212                         $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
 1216                         $this->pg_obj->addHierIDs();
 
 1227         function getTabs(&$tab_gui, $a_create = 
false, $a_change_obj_ref = 
false)
 
 1235                                 $ilTabs->addTarget(
"cont_style",
 
 1236                                         $ilCtrl->getLinkTarget($this, 
"editStyle"), 
"editStyle",
 
 1240                         $ilTabs->addTarget(
"cont_mob_inst_prop",
 
 1241                                 $ilCtrl->getLinkTarget($this, 
"editAlias"), 
"editAlias",
 
 1246                                 $st_item = $this->content_obj->getMediaObject()->getMediaItem(
"Standard");
 
 1247                                 if (is_object($st_item))
 
 1249                                         $format = $st_item->getFormat();
 
 1250                                         if (substr($format, 0, 5) == 
"image")
 
 1252                                                 $ilTabs->addTarget(
"cont_inst_map_areas",
 
 1253                                                         $ilCtrl->getLinkTargetByClass(
"ilpcimagemapeditorgui", 
"editMapAreas"), array(),
 
 1254                                                         "ilpcimagemapeditorgui");
 
 1261                         if ($a_change_obj_ref)
 
 1263                                 $cmd = 
"changeObjectReference";
 
 1270                         $ilCtrl->setParameter($this, 
"subCmd", 
"insertNew");
 
 1271                         $ilTabs->addSubTabTarget(
"cont_new_mob",
 
 1272                                 $ilCtrl->getLinkTarget($this, 
$cmd), 
$cmd);
 
 1274                         $ilCtrl->setParameter($this, 
"subCmd", 
"insertFromPool");
 
 1275                         $ilTabs->addSubTabTarget(
"cont_mob_from_media_pool",
 
 1276                                 $ilCtrl->getLinkTarget($this, 
$cmd), 
$cmd);
 
 1277                         $ilCtrl->setParameter($this, 
"subCmd", 
"");