ILIAS  release_7 Revision v7.30-3-g800a261c036
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 $DIC;
21
22 $ilCtrl = $DIC['ilCtrl'];
23 $lng = $DIC['lng'];
24
25 parent::__construct($a_parent_obj, $a_parent_cmd);
26
27 $this->setId("adopt_permission_" . $a_parent_obj->obj_id);
28 $this->addColumn("");
29 $this->addColumn($lng->txt("title"), "title", "70%");
30 $this->addColumn($lng->txt("type"), "type", "30%");
31 $this->setEnableHeader(true);
32 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
33 $this->setRowTemplate(
34 "tpl.obj_role_adopt_permission_row.html",
35 "Services/AccessControl"
36 );
37 $this->addCommandButton("perm", $lng->txt("cancel"));
38 $this->addMultiCommand("adoptPermSave", $lng->txt("save"));
39
40 $this->setLimit(9999);
41 }
42
46 protected function fillRow($a_set)
47 {
48 global $DIC;
49
50 $lng = $DIC['lng'];
51 $ilCtrl = $DIC['ilCtrl'];
52 $this->tpl->setVariable("PARAM", "adopt");
53 $this->tpl->setVariable("VAL_ID", $a_set["role_id"]);
54 $this->tpl->setVariable("VAL_TITLE", $a_set["role_name"]);
55 if (strlen($a_set["role_desc"])) {
56 $this->tpl->setVariable("VAL_DESCRIPTION", $a_set["role_desc"]);
57 }
58 $this->tpl->setVariable("VAL_TYPE", $a_set["type"]);
59 }
60}
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 $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc