4include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
 
    5include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
 
   35    public function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_prevent_get_id = 
false, $a_lang = 
"")
 
   39        $this->tpl = 
$DIC[
"tpl"];
 
   40        $this->ctrl = 
$DIC->ctrl();
 
   41        $this->tabs = 
$DIC->tabs();
 
   42        $this->lng = 
$DIC->language();
 
   46        parent::__construct($a_parent_type, $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
 
   49        include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
 
   52        $this->layout_object->readObject();
 
   55        include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
   56        $tpl->setCurrentBlock(
"ContentStyle");
 
   58            "LOCATION_CONTENT_STYLESHEET",
 
   61        $tpl->parseCurrentBlock();
 
   63        $tpl->setCurrentBlock(
"SyntaxStyle");
 
   65            "LOCATION_SYNTAX_STYLESHEET",
 
   69            "LOCATION_ADDITIONAL_STYLESHEET",
 
   72        $tpl->parseCurrentBlock();
 
   74        $this->
setStyleId($this->layout_object->getStyleId());
 
   84        $next_class = $this->ctrl->getNextClass($this);
 
   85        $cmd = $this->ctrl->getCmd();
 
   87        switch ($next_class) {
 
   89                return parent::executeCommand();
 
   92            case "ilpageobjectgui":
 
   93die(
"ilPageLayoutGUI forward to ilpageobjectgui error.");
 
   97                $html = parent::executeCommand();
 
  116        $ilTabs->setTabActive(
'properties');
 
  122        $this->tpl->setContent($a_form->getHTML());
 
  131        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
  133        $form_gui->setFormAction(
$ilCtrl->getFormAction($this));
 
  134        $form_gui->setTitle(
$lng->txt(
"cont_ed_pglprop"));
 
  138        $title_input->setSize(50);
 
  139        $title_input->setMaxLength(128);
 
  140        $title_input->setValue($this->layout_object->title);
 
  141        $title_input->setTitle(
$lng->txt(
"title"));
 
  142        $title_input->setRequired(
true);
 
  146        $desc_input->setValue($this->layout_object->description);
 
  147        $desc_input->setRows(3);
 
  148        $desc_input->setCols(37);
 
  149        $desc_input->setTitle(
$lng->txt(
"description"));
 
  150        $desc_input->setRequired(
false);
 
  155        $mods->setValue($this->layout_object->getModules());
 
  158            $mods->addOption($mod);
 
  161        $form_gui->addItem($title_input);
 
  162        $form_gui->addItem($desc_input);
 
  163        $form_gui->addItem($mods);
 
  166        $fixed_style = 
$ilSetting->get(
"fixed_content_style_id");
 
  167        $style_id = $this->layout_object->getStyleId();
 
  169        if ($fixed_style > 0) {
 
  172                $this->lng->txt(
"global_fixed") . 
")");
 
  173            $form_gui->addItem($st);
 
  175            include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
 
  177            $st_styles[0] = $this->lng->txt(
"default");
 
  180            $style_sel->setOptions($st_styles);
 
  181            $style_sel->setValue($style_id);
 
  182            $form_gui->addItem($style_sel);
 
  185        $form_gui->addCommandButton(
"updateProperties", 
$lng->txt($a_mode));
 
  198        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();
 
  223        $ilCtrl->setParameterByClass(
"ilpagelayoutgui", 
"obj_id", $this->obj->getId());
 
  226            $ilCtrl->getLinkTarget($this, 
"properties"),
 
  227            array(
"properties",
"", 
""),
 
  232        $tpl->setTitle($this->layout_object->getTitle());
 
  233        $tpl->setDescription(
"");
 
An exception for terminatinating execution or to throw for unit testing.
This class represents an option in a checkbox group.
This class represents a non editable value in a property form.
static getSyntaxStylePath()
get syntax style path
static _getStandardStyles( $a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
static getContentStylePath($a_style_id, $add_random=true)
get content style path
static _lookupTitle($a_id)
lookup object title
Class ilPageLayoutGUI GUI class.
executeCommand()
execute command
__construct($a_parent_type, $a_id=0, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
Constructor.
properties($a_mode="save", $a_form=null)
Edit page layout properties.
setTabs($a_tabs="")
output tabs
updateProperties()
Update properties.
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)
if(isset($_POST['submit'])) $form