ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilRoleAdoptPermissionTableGUI.php
Go to the documentation of this file.
1 <?php
2 include_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 }
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE Date: 07.01.15 Time: 11:43.
global $DIC
Definition: saml.php:7
setId($a_val)
Set id.
global $ilCtrl
Definition: ilias.php:18
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setLimit($a_limit=0, $a_default_limit=0)