4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 $lng->loadLanguageModule(
'rbac');
25 $this->
setId(
"usrroleass");
27 parent::__construct($a_parent_obj, $a_parent_cmd);
29 $this->
setTitle($lng->txt(
"role_assignment"));
34 $this->
addColumn($this->lng->txt(
"role"),
"title");
35 $this->
addColumn($this->lng->txt(
"description"),
"description");
36 $this->
addColumn($this->lng->txt(
"context"),
"path");
41 $this->
setRowTemplate(
"tpl.role_assignment_row.html",
"Services/User");
55 $option[0] = $lng->txt(
'assigned_roles');
56 $option[1] = $lng->txt(
'all_roles');
57 $option[2] = $lng->txt(
'all_global_roles');
58 $option[3] = $lng->txt(
'all_local_roles');
59 $option[4] = $lng->txt(
'internal_local_roles_only');
60 $option[5] = $lng->txt(
'non_internal_local_roles_only');
62 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
64 $si->setOptions($option);
66 $si->readFromSession();
67 $this->filter[
"role_filter"] =
$si->getValue();
77 if ($a_set[
'checkbox']) {
78 $this->tpl->setVariable(
"CHECKBOX", $a_set[
"checkbox"]);
80 $this->tpl->setVariable(
"ROLE", $a_set[
"role"]);
81 $this->tpl->setVariable(
"DESCRIPTION", $a_set[
"description"]);
82 $this->tpl->setVariable(
"CONTEXT", $a_set[
"context"]);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
fillRow($a_set)
Fill table row.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
TableGUI class for role assignment in user administration.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.