4 include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
25 function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_prevent_get_id =
false, $a_lang =
"")
29 parent::__construct($a_parent_type, $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
32 include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
35 $this->layout_object->readObject();
38 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
39 $tpl->setCurrentBlock(
"ContentStyle");
40 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
42 $tpl->parseCurrentBlock();
44 $tpl->setCurrentBlock(
"SyntaxStyle");
45 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
47 $tpl->setVariable(
"LOCATION_ADDITIONAL_STYLESHEET",
49 $tpl->parseCurrentBlock();
51 $this->
setStyleId($this->layout_object->getStyleId());
62 $next_class = $this->ctrl->getNextClass($this);
63 $cmd = $this->ctrl->getCmd();
68 return parent::executeCommand();
71 case "ilpageobjectgui":
72 die(
"ilPageLayoutGUI forward to ilpageobjectgui error.");
76 $html = parent::executeCommand();
94 $ilTabs->setTabActive(
'properties');
101 $this->tpl->setContent($a_form->getHTML());
108 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
110 $form_gui->setFormAction($ilCtrl->getFormAction($this));
111 $form_gui->setTitle($lng->txt(
"cont_ed_pglprop"));
114 $title_input =
new ilTextInputGUI($lng->txt(
"title"),
"pgl_title");
116 $title_input->setMaxLength(128);
117 $title_input->setValue($this->layout_object->title);
118 $title_input->setTitle($lng->txt(
"title"));
119 $title_input->setRequired(
true);
123 $desc_input->
setValue($this->layout_object->description);
124 $desc_input->setRows(3);
125 $desc_input->setCols(37);
126 $desc_input->setTitle($lng->txt(
"description"));
127 $desc_input->setRequired(
false);
132 $mods->
setValue($this->layout_object->getModules());
136 $mods->addOption($mod);
139 $form_gui->addItem($title_input);
140 $form_gui->addItem($desc_input);
141 $form_gui->addItem($mods);
144 $fixed_style = $ilSetting->get(
"fixed_content_style_id");
145 $style_id = $this->layout_object->getStyleId();
147 if ($fixed_style > 0)
151 $this->lng->txt(
"global_fixed").
")");
152 $form_gui->addItem($st);
156 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
158 $st_styles[0] = $this->lng->txt(
"default");
162 $style_sel->setValue($style_id);
163 $form_gui->addItem($style_sel);
166 $form_gui->addCommandButton(
"updateProperties", $lng->txt($a_mode));
179 if(!$form->checkInput())
181 $form->setValuesByPost();
185 $this->layout_object->setTitle($form->getInput(
'pgl_title'));
186 $this->layout_object->setDescription($form->getInput(
'pgl_desc'));
187 $this->layout_object->setStyleId($form->getInput(
'style_id'));
188 $this->layout_object->setModules($form->getInput(
'module'));
189 $this->layout_object->update();
202 $ilCtrl->setParameterByClass(
"ilpagelayoutgui",
"obj_id", $this->obj->id);
203 $ilTabs->addTarget(
"properties",
204 $ilCtrl->getLinkTarget($this,
"properties"),
array(
"properties",
"",
""),
"",
"");
206 $tpl->setTitle($this->layout_object->getTitle());
207 $tpl->setDescription(
"");
__construct($a_parent_type, $a_id=0, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
setTabs($a_tabs="")
output tabs
setValue($a_value)
Set Value.
This class represents an option in a checkbox group.
Class ilPageLayoutGUI GUI class.
static _getStandardStyles($a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
setValue($a_value)
Set Value.
static _lookupTitle($a_id)
lookup object title
executeCommand()
execute command
updateProperties()
Update properties.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
properties($a_mode="save", $a_form=null)
Edit page layout properties.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static getAvailableModules()
setSize($a_size)
Set Size.
This class represents a text property in a property form.
static getSyntaxStylePath()
get syntax style path
Create styles array
The data for the language used.
static getContentStylePath($a_style_id)
get content style path
setStyleId($a_styleid)
Set Style Id.
This class represents a non editable value in a property form.
This class represents a text area property in a property form.