ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilAccessPermissionsStatusTableGUI.php
Go to the documentation of this file.
1 <?php
2 include_once ('./Services/Table/classes/class.ilTable2GUI.php');
3 
14 {
18  public function __construct($a_parent_obj,$a_parent_cmd)
19  {
20  global $lng;
21 
22  parent::__construct($a_parent_obj,$a_parent_cmd);
23 
24  $this->setId('accessperm'.$this->parent_obj->user->getId());
25  $this->setEnableHeader(true);
26  $this->disable('sort');
27  $this->disable('numinfo');
28  $this->setLimit(100);
29  $this->setRowTemplate("tpl.access_permissions_status_row.html", "Services/AccessControl");
30 
31  $this->addColumn("","status","5%");
32  $this->addColumn($lng->txt("operation"),"operation", "45%");
33  $this->addColumn($lng->txt("info_from_role"),"role_ownership");
34  }
35 
39  protected function fillRow($a_set)
40  {
41  global $lng;
42 
43  if($a_set["img"] == ilObjectPermissionStatusGUI::IMG_OK)
44  {
45  $img_path = ilUtil::getImagePath("icon_ok.svg");
46  $img_info = $lng->txt("info_assigned");
47  }
48  else
49  {
50  $img_path = ilUtil::getImagePath("icon_not_ok.svg");
51  $img_info = $lng->txt("info_not_assigned");
52  }
53  $this->tpl->setVariable("IMG_PATH", $img_path);
54  $this->tpl->setVariable("IMG_INFO", $img_info);
55 
56  $this->tpl->setVariable("TXT_OPERATION", $a_set["operation"]);
57 
58  foreach($a_set["role_ownership"] as $role_ownership)
59  {
60  $this->tpl->setCurrentBlock("role_ownership");
61  $this->tpl->setVariable("TXT_ROLE_OWNERSHIP", $role_ownership);
62  $this->tpl->parseCurrentBlock();
63  }
64 
65 
66  }
67 }
68 
69 
Table for Acces Permissons in Permission > Permission of User.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setId($a_val)
Set id.
Class ilTable2GUI.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
disable($a_module_name)
diesables particular modules of table
global $lng
Definition: privfeed.php:17
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.
setLimit($a_limit=0, $a_default_limit=0)