26 protected \ILIAS\DI\UIServices
$ui;
37 $this->
ctrl = $DIC->ctrl();
38 $this->
lng = $DIC->language();
39 $this->rbacsystem = $DIC->rbac()->system();
40 $ilCtrl = $DIC->ctrl();
41 $lng = $DIC->language();
42 $this->
ui = $DIC->ui();
58 if ($a_parent_obj->checkPermission(
"sty_write_page_layout",
false)) {
70 "tpl.stys_pglayout_table_row.html",
71 "Services/COPage/Layout" 85 protected function fillRow(array $a_set): void
90 $ilCtrl->
setParameter($this->parent_obj,
"layout_id",
"");
93 $this->tpl->setCurrentBlock(
"mod");
94 foreach ($this->all_mods as $mod_id => $mod_caption) {
98 $this->tpl->setVariable(
"MOD_NAME", $mod_caption);
99 $this->tpl->parseCurrentBlock();
103 if ($a_set[
'active']) {
108 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
'title']);
109 $this->tpl->setVariable(
"VAL_DESCRIPTION", $a_set[
'description']);
110 $this->tpl->setVariable(
"CHECKBOX_ID", $a_set[
'layout_id']);
112 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_set[
'layout_id']);
114 if ($this->parent_obj->checkPermission(
"sty_write_page_layout",
false)) {
115 $links[] = $this->
ui->factory()->link()->standard(
116 $this->
lng->txt(
"edit"),
117 $ilCtrl->getLinkTarget($this->parent_obj,
"editPg")
119 $links[] = $this->
ui->factory()->link()->standard(
120 $this->
lng->txt(
"settings"),
121 $ilCtrl->getLinkTargetByClass(
"ilpagelayoutgui",
"properties")
123 $links[] = $this->
ui->factory()->link()->standard(
124 $this->
lng->txt(
"export"),
125 $ilCtrl->getLinkTarget($this->parent_obj,
"exportLayout")
127 $dd = $this->
ui->factory()->dropdown()->standard($links);
129 $this->tpl->setVariable(
131 $this->
ui->renderer()->render($dd)
136 $this->tpl->setVariable(
"VAL_PREVIEW_HTML", $pgl_obj->getPreview());
__construct(object $a_parent_obj, string $a_parent_cmd)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
loadLanguageModule(string $a_module)
Load language module.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getLayoutsAsArray(int $a_active=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getPageLayouts()
Get a List of all Page Layouts.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static getAvailableModules()
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)