4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
26 function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
33 include_once(
"./Services/Style/classes/class.ilPageLayout.php");
36 $this->layout_object->readObject();
39 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
40 $tpl->setCurrentBlock(
"ContentStyle");
41 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
43 $tpl->parseCurrentBlock();
45 $tpl->setCurrentBlock(
"SyntaxStyle");
46 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
48 $tpl->setVariable(
"LOCATION_ADDITIONAL_STYLESHEET",
50 $tpl->parseCurrentBlock();
52 $this->
setStyleId($this->layout_object->getStyleId());
54 $this->slm_id = $a_slm_id;
65 $next_class = $this->ctrl->getNextClass($this);
66 $cmd = $this->ctrl->getCmd();
74 case "ilpageobjectgui":
75 die(
"ilPageLayoutGUI forward to ilpageobjectgui error.");
97 $ilTabs->setTabActive(
'properties');
104 $this->tpl->setContent($a_form->getHTML());
111 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
113 $form_gui->setFormAction($ilCtrl->getFormAction($this));
114 $form_gui->setTitle($lng->txt(
"cont_ed_pglprop"));
117 $title_input =
new ilTextInputGUI($lng->txt(
"title"),
"pgl_title");
119 $title_input->setMaxLength(128);
120 $title_input->setValue($this->layout_object->title);
121 $title_input->setTitle($lng->txt(
"title"));
122 $title_input->setRequired(
true);
126 $desc_input->
setValue($this->layout_object->description);
127 $desc_input->setRows(3);
128 $desc_input->setCols(37);
129 $desc_input->setTitle($lng->txt(
"description"));
130 $desc_input->setRequired(
false);
135 $mods->
setValue($this->layout_object->getModules());
139 $mods->addOption($mod);
142 $form_gui->addItem($title_input);
143 $form_gui->addItem($desc_input);
144 $form_gui->addItem($mods);
147 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
148 $style_id = $this->layout_object->getStyleId();
150 if ($fixed_style > 0)
154 $this->lng->txt(
"global_fixed").
")");
155 $form_gui->addItem($st);
159 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
161 $st_styles[0] = $this->lng->txt(
"default");
165 $style_sel->setValue($style_id);
166 $form_gui->addItem($style_sel);
169 $form_gui->addCommandButton(
"updateProperties", $lng->txt($a_mode));
182 if(!$form->checkInput())
184 $form->setValuesByPost();
188 $this->layout_object->setTitle($form->getInput(
'pgl_title'));
189 $this->layout_object->setDescription($form->getInput(
'pgl_desc'));
190 $this->layout_object->setStyleId($form->getInput(
'style_id'));
191 $this->layout_object->setModules($form->getInput(
'module'));
192 $this->layout_object->update();
204 $ilCtrl->setParameterByClass(
"ilpagelayoutgui",
"obj_id", $this->obj->id);
205 $ilTabs->addTarget(
"properties",
206 $ilCtrl->getLinkTarget($this,
"properties"), array(
"properties",
"",
""),
"",
"");
208 $tpl->setTitle($this->layout_object->getTitle());
209 $tpl->setDescription(
"");