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();
56 $this->
setStyleId($this->layout_object->getStyleId());
60 $this->obj->setLayoutMode(
true);
62 $this->slm_id = $a_slm_id;
76 $next_class = $this->ctrl->getNextClass($this);
77 $cmd = $this->ctrl->getCmd();
85 case "ilpageobjectgui":
90 $html = $ilCtrl->forwardCommand($page_gui);
112 $ilTabs->setTabActive(
'properties');
119 $this->tpl->setContent($a_form->getHTML());
126 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
128 $form_gui->setFormAction($ilCtrl->getFormAction($this));
129 $form_gui->setTitle($lng->txt(
"cont_ed_pglprop"));
132 $title_input =
new ilTextInputGUI($lng->txt(
"title"),
"pgl_title");
134 $title_input->setMaxLength(128);
135 $title_input->setValue($this->layout_object->title);
136 $title_input->setTitle($lng->txt(
"title"));
137 $title_input->setRequired(
true);
141 $desc_input->
setValue($this->layout_object->description);
142 $desc_input->setRows(3);
143 $desc_input->setCols(37);
144 $desc_input->setTitle($lng->txt(
"description"));
145 $desc_input->setRequired(
false);
150 $mods->
setValue($this->layout_object->getModules());
154 $mods->addOption($mod);
157 $form_gui->addItem($title_input);
158 $form_gui->addItem($desc_input);
159 $form_gui->addItem($mods);
162 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
163 $style_id = $this->layout_object->getStyleId();
165 if ($fixed_style > 0)
169 $this->lng->txt(
"global_fixed").
")");
170 $form_gui->addItem($st);
174 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
176 $st_styles[0] = $this->lng->txt(
"default");
180 $style_sel->setValue($style_id);
181 $form_gui->addItem($style_sel);
184 $form_gui->addCommandButton(
"updateProperties", $lng->txt($a_mode));
197 if(!$form->checkInput())
199 $form->setValuesByPost();
203 $this->layout_object->setTitle($form->getInput(
'pgl_title'));
204 $this->layout_object->setDescription($form->getInput(
'pgl_desc'));
205 $this->layout_object->setStyleId($form->getInput(
'style_id'));
206 $this->layout_object->setModules($form->getInput(
'module'));
207 $this->layout_object->update();
219 $ilCtrl->setParameterByClass(
"ilpagelayoutgui",
"obj_id", $this->obj->id);
220 $ilTabs->addTarget(
"properties",
221 $ilCtrl->getLinkTarget($this,
"properties"), array(
"properties",
"",
""),
"",
"");
223 $tpl->setTitle($this->layout_object->getTitle());
224 $tpl->setDescription(
"");