3 declare(strict_types=1);
40 bool $a_show_admin_permissions =
false 44 $this->show_admin_permissions = $a_show_admin_permissions;
45 $this->rbacreview = $DIC->rbac()->review();
47 $this->
setId(
'role_options_' . $a_obj_ref_id .
'_' . $a_role_id);
50 $this->
lng->loadLanguageModule(
'rbac');
52 $this->role_id = $a_role_id;
53 $this->obj_ref_id = $a_obj_ref_id;
55 $this->
setRowTemplate(
"tpl.obj_role_template_options_row.html",
"Services/AccessControl");
76 $this->show_options = $a_status;
100 protected function fillRow(array $a_set): void
105 if (isset($a_set[
'recursive']) && !$this->show_admin_permissions) {
106 $this->tpl->setCurrentBlock(
'recursive');
107 $this->tpl->setVariable(
'TXT_RECURSIVE', $this->
lng->txt(
'change_existing_objects'));
108 $this->tpl->setVariable(
'DESC_RECURSIVE', $this->
lng->txt(
'change_existing_objects_desc'));
109 } elseif (isset($a_set[
'protected'])) {
110 $this->tpl->setCurrentBlock(
'protected');
112 if (!$this->rbacreview->isAssignable($this->getRoleId(), $this->
getObjectRefId())) {
113 $this->tpl->setVariable(
'DISABLED_PROTECTED',
'disabled="disabled"');
116 if ($this->rbacreview->isProtected($this->getObjectRefId(), $this->
getRoleId())) {
117 $this->tpl->setVariable(
'PROTECTED_CHECKED',
'checked="checked"');
120 $this->tpl->setVariable(
'TXT_PROTECTED', $this->
lng->txt(
'role_protect_permissions'));
121 $this->tpl->setVariable(
'DESC_PROTECTED', $this->
lng->txt(
'role_protect_permissions_desc'));
122 $this->tpl->parseCurrentBlock();
132 $row[0][
'recursive'] = 1;
133 $row[1][
'protected'] = 1;
bool $show_admin_permissions
setTopCommands(bool $a_val)
setDisableFilterHiding(bool $a_val=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_obj_ref_id, int $a_role_id, bool $a_show_admin_permissions=false)
fillRow(array $a_set)
Fill row template.
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
parse()
Parse permissions.
getObjectRefId()
Get role folder of current object.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
setShowOptions(bool $a_status)
Set show options.
setEnableHeader(bool $a_enableheader)