4include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
    5include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
 
   26        function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
 
   30                parent::__construct($a_parent_type, $a_id, $a_old_nr);
 
   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();
 
   71                                return parent::executeCommand();
 
   74                        case "ilpageobjectgui":
 
   75die(
"ilPageLayoutGUI forward to ilpageobjectgui error.");
 
   79                                $html = parent::executeCommand();
 
   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"));
 
  118                $title_input->setSize(50);
 
  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");
 
  164                        $style_sel->setOptions($st_styles);
 
  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(
"");
 
This class represents an option in a checkbox group.
This class represents a non editable value in a property form.
getContentStylePath($a_style_id)
get content style path
_getStandardStyles($a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
getSyntaxStylePath()
get syntax style path
static _lookupTitle($a_id)
lookup object title
Class ilPageLayoutGUI GUI class.
__construct($a_parent_type, $a_id=0, $a_old_nr=0, $a_slm_id=0)
$layout_object
Constructor.
properties($a_mode="save", $a_form=null)
Edit page layout properties.
updateProperties()
Update properties.
& executeCommand()
execute command
static getAvailableModules()
setStyleId($a_styleid)
Set Style Id.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)