ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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