24 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
   25 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
 
   46         function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
 
   53                 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
 
   54                 $tpl->setCurrentBlock(
"ContentStyle");
 
   55                 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
 
   57                 $tpl->parseCurrentBlock();
 
   59                 $tpl->setCurrentBlock(
"SyntaxStyle");
 
   60                 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
 
   62                 $tpl->setVariable(
"LOCATION_ADDITIONAL_STYLESHEET",
 
   64                 $tpl->parseCurrentBlock();
 
   73                 $this->obj->setLayoutMode(
true);
 
   76                 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
 
   79                 $this->layout_object->readObject();
 
   80                 $this->slm_id = $a_slm_id;
 
   94                 $next_class = $this->ctrl->getNextClass($this);
 
   95                 $cmd = $this->ctrl->getCmd();
 
  103                         case "ilpageobjectgui":
 
  106                                 $html = $ilCtrl->forwardCommand($page_gui);
 
  123                 $ilTabs->setTabActive(
'properties');
 
  125                 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  127                 $this->form_gui->setFormAction($ilCtrl->getFormAction($this));
 
  128                 $this->form_gui->setTitle($lng->txt(
"cont_ed_pglprop"));
 
  130                 include_once(
"Services/Form/classes/class.ilRadioMatrixInputGUI.php");
 
  133                 $title_input = 
new ilTextInputGUI($lng->txt(
"title"),
"pgl_title");
 
  135                 $title_input->setMaxLength(128);
 
  136                 $title_input->setValue($this->layout_object->title);
 
  137                 $title_input->setTitle($lng->txt(
"title"));
 
  138                 $title_input->setRequired(
true);
 
  141                 $desc_input->
setValue($this->layout_object->description);
 
  142                 $desc_input->setRows(3);
 
  143                 $desc_input->setCols(37);
 
  145                 $desc_input->setTitle($lng->txt(
"description"));
 
  146                 $desc_input->setRequired(
false);
 
  148                 $this->form_gui->addItem($title_input);
 
  149                 $this->form_gui->addItem($desc_input);
 
  151                 $this->form_gui->addCommandButton(
"updateProperties", $lng->txt($a_mode));
 
  152                 $this->tpl->setContent($this->form_gui->getHTML());
 
  158                 if(
$_POST[
"pgl_title"] == 
"")
 
  160                         $this->ilias->raiseError($this->lng->txt(
"no_title"),$this->ilias->error_obj->MESSAGE);
 
  164                 $this->layout_object->setTitle(
$_POST[
'pgl_title']);
 
  165                 $this->layout_object->setDescription(
$_POST[
'pgl_desc']);
 
  166                 $this->layout_object->update();
 
  177                 $ilCtrl->setParameterByClass(
"ilpagelayoutgui", 
"obj_id", $this->obj->id);
 
  178                 $ilTabs->addTarget(
"properties",
 
  179                         $ilCtrl->getLinkTarget($this, 
"properties"), array(
"properties",
"", 
""), 
"", 
"");
 
  181                 $tpl->setTitle($this->layout_object->getTitle());
 
  182                 $tpl->setDescription(
"");