ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
4include_once("./Services/Table/classes/class.ilTable2GUI.php");
5
14{
21 function __construct($a_parent_obj, $a_parent_cmd)
22 {
23 global $ilCtrl, $lng;
24
25 $this->setId("ilcatluaar");
26
27 parent::__construct($a_parent_obj, $a_parent_cmd);
28
29 $this->addColumn("", "", "", true,"4%");
30 $this->addColumn($lng->txt("title"), "title","35%");
31 $this->addColumn($lng->txt("description"), "desc","45%");
32 $this->addColumn($lng->txt("type"), "type","16%");
33
34 $this->addMultiCommand('assignSave', $lng->txt("change_assignment"));
35
36 $ilCtrl->saveParameter($a_parent_obj, 'obj_id');
37 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
38 $this->setRowTemplate("tpl.cat_role_assignment.html", "Modules/Category");
39 $this->setDefaultOrderDirection("asc");
40 $this->setShowRowsSelector(false);
41 $this->setLimit(999999);
42 }
43
47 protected function fillRow($a_set)
48 {
49 $this->tpl->setVariable("INPUT_CHCKBX", $a_set["checkbox"]);
50 $this->tpl->setVariable("TXT_TITLE", $a_set["title"]);
51 $this->tpl->setVariable("TXT_DESCRIPTION", $a_set["desc"]);
52 $this->tpl->setVariable("TXT_TYPE", $a_set["type"]);
53 }
54}
55
56?>
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for role assignments.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
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.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17