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 $rbacreview = $DIC[
'rbacreview'];
37 $this->show_admin_permissions = $a_show_admin_permissions;
39 parent::__construct($a_parent_obj, $a_parent_cmd);
41 $this->
setId(
'role_options_' . $a_ref_id .
'_' . $a_role_id);
43 $this->lng->loadLanguageModule(
'rbac');
45 $this->role_id = $a_role_id;
46 $this->obj_ref_id = $a_obj_ref_id;
49 $this->
setRowTemplate(
"tpl.obj_role_template_options_row.html",
"Services/AccessControl");
72 $this->show_options = $a_status;
111 $rbacreview = $DIC[
'rbacreview'];
118 if (isset(
$row[
'recursive'])
and !$this->show_admin_permissions) {
119 $this->tpl->setCurrentBlock(
'recursive');
120 $this->tpl->setVariable(
'TXT_RECURSIVE', $this->lng->txt(
'change_existing_objects'));
121 $this->tpl->setVariable(
'DESC_RECURSIVE', $this->lng->txt(
'change_existing_objects_desc'));
123 } elseif (
$row[
'protected']) {
124 $this->tpl->setCurrentBlock(
'protected');
126 if (!$rbacreview->isAssignable($this->getRoleId(), $this->
getObjectRefId())) {
127 $this->tpl->setVariable(
'DISABLED_PROTECTED',
'disabled="disabled"');
130 if ($rbacreview->isProtected($this->getObjectRefId(), $this->
getRoleId())) {
131 $this->tpl->setVariable(
'PROTECTED_CHECKED',
'checked="checked"');
134 $this->tpl->setVariable(
'TXT_PROTECTED', $this->lng->txt(
'role_protect_permissions'));
135 $this->tpl->setVariable(
'DESC_PROTECTED', $this->lng->txt(
'role_protect_permissions_desc'));
136 $this->tpl->parseCurrentBlock();
149 $rbacreview = $DIC[
'rbacreview'];
150 $objDefinition = $DIC[
'objDefinition'];
152 $row[0][
'recursive'] = 1;
153 $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)