ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  $img_path = ilUtil::getImagePath("icon_ok.svg");
45  $img_info = $lng->txt("info_assigned");
46  } else {
47  $img_path = ilUtil::getImagePath("icon_not_ok.svg");
48  $img_info = $lng->txt("info_not_assigned");
49  }
50  $this->tpl->setVariable("IMG_PATH", $img_path);
51  $this->tpl->setVariable("IMG_INFO", $img_info);
52 
53  $this->tpl->setVariable("TXT_OPERATION", $a_set["operation"]);
54 
55  foreach ($a_set["role_ownership"] as $role_ownership) {
56  $this->tpl->setCurrentBlock("role_ownership");
57  $this->tpl->setVariable("TXT_ROLE_OWNERSHIP", $role_ownership);
58  $this->tpl->parseCurrentBlock();
59  }
60  }
61 }
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
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)