ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilSysStyleCatAssignmentTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
25  public function __construct($a_parent_obj, $a_parent_cmd, $skin_id, $style_id, $sub_style_id)
26  {
27  global $DIC;
28 
29  parent::__construct($a_parent_obj, $a_parent_cmd);
30 
31  $this->skin_id = $skin_id;
32  $this->style_id = $style_id;
33  $this->sub_style_id = $sub_style_id;
34 
35 
36  $this->getStyleCatAssignments();
37  $this->setTitle($this->lng->txt("sty_cat_assignments"));
38 
39  $this->addColumn("", "", "1");
40  $this->addColumn($this->lng->txt("obj_cat"));
41 
42  $this->setFormAction($DIC->ctrl()->getFormAction($a_parent_obj));
43  $this->setRowTemplate("tpl.sty_cat_ass_row.html", "Services/Style/System");
44 
45  $this->addMultiCommand("deleteAssignments", $DIC->language()->txt("remove_assignment"));
46  }
47 
48 
49  public function getStyleCatAssignments()
50  {
51  $this->setData(ilSystemStyleSettings::getSubStyleCategoryAssignments($this->skin_id, $this->style_id, $this->sub_style_id));
52  }
53 
54 
58  protected function fillRow($a_set)
59  {
60  $this->tpl->setVariable("REF_ID", $a_set["ref_id"]);
61  $this->tpl->setVariable(
62  "CATEGORY",
64  );
65  }
66 }
global $DIC
Definition: saml.php:7
static getSubStyleCategoryAssignments($a_skin_id, $a_style_id, $a_sub_style_id)
Get all system category assignments of exactly one substyle.
static _lookupTitle($a_id)
lookup object title
TableGUI class for system style to category assignments.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
static _lookupObjId($a_id)
addMultiCommand($a_cmd, $a_text)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $skin_id, $style_id, $sub_style_id)
ilSysStyleCatAssignmentTableGUI constructor.
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.