ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilRoleAdoptPermissionTableGUI.php
Go to the documentation of this file.
1 <?php
2 include_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 }