4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
5 include_once
'./Services/AccessControl/classes/class.ilPermissionGUI.php';
28 public function __construct($a_parent_obj, $a_parent_cmd, $a_obj_ref_id, $a_role_id, $a_show_admin_permissions =
false)
33 $this->show_admin_permissions = $a_show_admin_permissions;
35 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
setId(
'role_options_' . $a_ref_id .
'_' . $a_role_id);
39 $this->lng->loadLanguageModule(
'rbac');
41 $this->role_id = $a_role_id;
42 $this->obj_ref_id = $a_obj_ref_id;
45 $this->
setRowTemplate(
"tpl.obj_role_template_options_row.html",
"Services/AccessControl");
68 $this->show_options = $a_status;
111 if (isset(
$row[
'recursive']) and !$this->show_admin_permissions) {
112 $this->tpl->setCurrentBlock(
'recursive');
113 $this->tpl->setVariable(
'TXT_RECURSIVE', $this->lng->txt(
'change_existing_objects'));
114 $this->tpl->setVariable(
'DESC_RECURSIVE', $this->lng->txt(
'change_existing_objects_desc'));
116 } elseif (
$row[
'protected']) {
117 $this->tpl->setCurrentBlock(
'protected');
119 if (!$rbacreview->isAssignable($this->getRoleId(), $this->
getObjectRefId())) {
120 $this->tpl->setVariable(
'DISABLED_PROTECTED',
'disabled="disabled"');
123 if ($rbacreview->isProtected($this->getObjectRefId(), $this->
getRoleId())) {
124 $this->tpl->setVariable(
'PROTECTED_CHECKED',
'checked="checked"');
127 $this->tpl->setVariable(
'TXT_PROTECTED', $this->lng->txt(
'role_protect_permissions'));
128 $this->tpl->setVariable(
'DESC_PROTECTED', $this->lng->txt(
'role_protect_permissions_desc'));
129 $this->tpl->parseCurrentBlock();
140 global $rbacreview, $objDefinition;
142 $row[0][
'recursive'] = 1;
143 $row[1][
'protected'] = 1;
Table for object role permissions.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
parse()
Parse permissions.
setShowOptions($a_status)
Set show options.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
getObjectRefId()
Get role folder of current object.
getRoleId()
Get currrent role id.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
disable($a_module_name)
diesables particular modules of table
__construct($a_parent_obj, $a_parent_cmd, $a_obj_ref_id, $a_role_id, $a_show_admin_permissions=false)
Constructor.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
fillRow($row)
Fill row template.
setLimit($a_limit=0, $a_default_limit=0)