ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 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}
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.
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.
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.
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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46