ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilCategoryAssignRoleTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Table/classes/class.ilTable2GUI.php");
5 
14 {
21  public function __construct($a_parent_obj, $a_parent_cmd)
22  {
23  global $DIC;
24 
25  $this->ctrl = $DIC->ctrl();
26  $this->lng = $DIC->language();
27  $ilCtrl = $DIC->ctrl();
28  $lng = $DIC->language();
29 
30  $this->setId("ilcatluaar");
31 
32  parent::__construct($a_parent_obj, $a_parent_cmd);
33 
34  $this->addColumn("", "", "", true, "4%");
35  $this->addColumn($lng->txt("title"), "title", "35%");
36  $this->addColumn($lng->txt("description"), "desc", "45%");
37  $this->addColumn($lng->txt("type"), "type", "16%");
38 
39  $this->addMultiCommand('assignSave', $lng->txt("change_assignment"));
40 
41  $ilCtrl->saveParameter($a_parent_obj, 'obj_id');
42  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
43  $this->setRowTemplate("tpl.cat_role_assignment.html", "Modules/Category");
44  $this->setDefaultOrderDirection("asc");
45  $this->setShowRowsSelector(false);
46  $this->setLimit(999999);
47  }
48 
52  protected function fillRow($a_set)
53  {
54  $this->tpl->setVariable("INPUT_CHCKBX", $a_set["checkbox"]);
55  $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
56  $this->tpl->setVariable("TXT_DESCRIPTION", $a_set["desc"]);
57  $this->tpl->setVariable("TXT_TYPE", $a_set["type"]);
58  }
59 }
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
global $DIC
Definition: saml.php:7
setId($a_val)
Set id.
TableGUI class for role assignments.
global $ilCtrl
Definition: ilias.php:18
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
Class ilTable2GUI.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setLimit($a_limit=0, $a_default_limit=0)