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