24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
54 public function __construct($a_temp_type, $a_parent_obj, $a_parent_cmd, $a_style_obj)
58 $this->ctrl = $DIC->ctrl();
59 $this->lng = $DIC->language();
60 $this->access = $DIC->access();
61 $this->rbacsystem = $DIC->rbac()->system();
63 $lng = $DIC->language();
65 parent::__construct($a_parent_obj, $a_parent_cmd);
68 include_once(
"./Services/Accordion/classes/class.ilAccordionGUI.php");
72 $this->style_obj = $a_style_obj;
73 $this->temp_type = $a_temp_type;
76 $this->
addColumn($this->lng->txt(
"sty_template_name"),
"");
77 $this->
addColumn($this->lng->txt(
"sty_preview"),
"");
78 $this->
addColumn($this->lng->txt(
"sty_commands"),
"",
"1");
81 $this->
setRowTemplate(
"tpl.style_template_row.html",
"Services/Style/Content");
85 if ($this->parent_obj->checkWrite()) {
97 $this->
setData($this->style_obj->getTemplates($this->temp_type));
108 $this->tpl->setVariable(
110 $this->style_obj->lookupTemplatePreview($a_set[
"id"])
112 $this->tpl->setVariable(
"TID", $a_set[
"id"]);
113 $this->tpl->setVariable(
"TEMPLATE_NAME", $a_set[
"name"]);
114 $ilCtrl->setParameter($this->parent_obj,
"t_id", $a_set[
"id"]);
116 if ($this->parent_obj->checkWrite()) {
117 $this->tpl->setVariable(
118 "LINK_EDIT_TEMPLATE",
119 $ilCtrl->getLinkTarget($this->parent_obj,
"editTemplate")
121 $this->tpl->setVariable(
"TXT_EDIT",
$lng->txt(
"edit"));
getItems()
Get items of current folder.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_temp_type, $a_parent_obj, $a_parent_cmd, $a_style_obj)
Constructor.
static addCss()
Add required css.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
fillRow($a_set)
Fill table row.