ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilRoleAdoptPermissionTableGUI.php
Go to the documentation of this file.
1<?php
2include_once('./Services/Table/classes/class.ilTable2GUI.php');
17{
18 public function __construct($a_parent_obj, $a_parent_cmd)
19 {
20 global $ilCtrl, $lng;
21
22 parent::__construct($a_parent_obj, $a_parent_cmd);
23
24 $this->setId("adopt_permission_" . $a_parent_obj->obj_id);
25 $this->addColumn("");
26 $this->addColumn($lng->txt("title"), "title", "70%");
27 $this->addColumn($lng->txt("type"), "type", "30%");
28 $this->setEnableHeader(true);
29 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
30 $this->setRowTemplate(
31 "tpl.obj_role_adopt_permission_row.html",
32 "Services/AccessControl"
33 );
34 $this->addCommandButton("perm", $lng->txt("cancel"));
35 $this->addMultiCommand("adoptPermSave", $lng->txt("save"));
36
37 $this->setLimit(9999);
38 }
39
43 protected function fillRow($a_set)
44 {
45 global $lng, $ilCtrl;
46 $this->tpl->setVariable("PARAM", "adopt");
47 $this->tpl->setVariable("VAL_ID", $a_set["role_id"]);
48 $this->tpl->setVariable("VAL_TITLE", $a_set["role_name"]);
49 if (strlen($a_set["role_desc"])) {
50 $this->tpl->setVariable("VAL_DESCRIPTION", $a_set["role_desc"]);
51 }
52 $this->tpl->setVariable("VAL_TYPE", $a_set["type"]);
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE Date: 07....
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
global $ilCtrl
Definition: ilias.php:18