4 include_once (
'./Services/Table/classes/class.ilTable2GUI.php');
5 include_once
'./Services/AccessControl/classes/class.ilPermissionGUI.php';
27 public function __construct($a_parent_obj,$a_parent_cmd, $a_obj_ref_id,$a_role_id,$a_show_admin_permissions =
false)
32 $this->show_admin_permissions = $a_show_admin_permissions;
34 parent::__construct($a_parent_obj,$a_parent_cmd);
36 $this->
setId(
'role_options_'.$a_ref_id.
'_'.$a_role_id);
38 $this->lng->loadLanguageModule(
'rbac');
40 $this->role_id = $a_role_id;
41 $this->obj_ref_id = $a_obj_ref_id;
44 $this->
setRowTemplate(
"tpl.obj_role_template_options_row.html",
"Services/AccessControl");
88 if(isset(
$row[
'recursive'])
and !$this->show_admin_permissions)
90 $this->tpl->setCurrentBlock(
'recursive');
91 $this->tpl->setVariable(
'TXT_RECURSIVE',$this->lng->txt(
'change_existing_objects'));
92 $this->tpl->setVariable(
'DESC_RECURSIVE',$this->lng->txt(
'change_existing_objects_desc'));
95 elseif(
$row[
'protected'])
97 $this->tpl->setCurrentBlock(
'protected');
99 if(!$rbacreview->isAssignable($this->getRoleId(), $this->
getObjectRefId()))
101 $this->tpl->setVariable(
'DISABLED_PROTECTED',
'disabled="disabled"');
104 if($rbacreview->isProtected($this->getObjectRefId(), $this->
getRoleId()))
106 $this->tpl->setVariable(
'PROTECTED_CHECKED',
'checked="checked"');
109 $this->tpl->setVariable(
'TXT_PROTECTED',$this->lng->txt(
'role_protect_permissions'));
110 $this->tpl->setVariable(
'DESC_PROTECTED',$this->lng->txt(
'role_protect_permissions_desc'));
111 $this->tpl->parseCurrentBlock();
122 global $rbacreview, $objDefinition;
124 $row[0][
'recursive'] = 1;
125 $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.
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
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.
fillRow($row)
Fill row template.
setLimit($a_limit=0, $a_default_limit=0)