4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
30 $this->ctrl = $DIC->ctrl();
31 $this->lng = $DIC->language();
32 $this->rbacsystem = $DIC->rbac()->system();
34 $lng = $DIC->language();
37 $lng->loadLanguageModule(
"content");
39 parent::__construct($a_parent_obj, $a_parent_cmd);
52 if ($a_parent_obj->checkPermission(
"sty_write_page_layout",
false)) {
65 "tpl.stys_pglayout_table_row.html",
66 "Services/COPage/Layout" 100 $ilCtrl->setParameter($this->parent_obj,
"layout_id", $a_set[
'layout_id']);
102 if ($this->parent_obj->checkPermission(
"sty_write_page_layout",
false)) {
103 $this->tpl->setCurrentBlock(
"action");
104 $this->tpl->setVariable(
106 $ilCtrl->getLinkTarget($this->parent_obj,
"exportLayout")
108 $this->tpl->setVariable(
"TXT_ACTION",
$lng->txt(
"export"));
109 $this->tpl->parseCurrentBlock();
112 $ilCtrl->setParameter($this->parent_obj,
"layout_id",
"");
115 $this->tpl->setCurrentBlock(
"mod");
116 foreach ($this->all_mods as $mod_id => $mod_caption) {
119 $this->tpl->setVariable(
"MOD_STATUS",
" checked=\"checked\"");
121 $this->tpl->setVariable(
"MODULE_ID", $mod_id);
122 $this->tpl->setVariable(
"LAYOUT_ID", $a_set[
"layout_id"]);
123 $this->tpl->setVariable(
"MOD_NAME", $mod_caption);
124 $this->tpl->parseCurrentBlock();
127 if ($a_set[
'active']) {
132 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
'title']);
133 $this->tpl->setVariable(
"VAL_DESCRIPTION", $a_set[
'description']);
134 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
'layout_id']);
136 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_set[
'layout_id']);
137 if ($this->parent_obj->checkPermission(
"sty_write_page_layout",
false)) {
138 $this->tpl->setVariable(
"HREF_EDIT_PGLAYOUT",
$ilCtrl->getLinkTarget($this->parent_obj,
"editPg"));
142 $this->tpl->setVariable(
"VAL_PREVIEW_HTML", $pgl_obj->getPreview());
144 if ($a_set[
"style_id"] > 0) {
145 $this->tpl->setVariable(
151 $this->tpl->setVariable(
154 $a_set[
"special_page"],
155 "type[" . $a_set[
"layout_id"] .
"]",
156 array(
"0" =>
$lng->txt(
"cont_layout_template"),
157 "1" =>
$lng->txt(
"cont_special_page")),
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd)
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
TableGUI class for page layouts.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getPageLayouts()
Get a List of all Page Layouts.
static getAvailableModules()
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Standard Version of Fill Row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static getLayoutsAsArray($a_active=0)
Static access functions.
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.