29 protected \ILIAS\HTTP\Services
$http;
36 string $template_context =
"" 41 $this->
ctrl = $DIC->ctrl();
42 $this->
tabs = $DIC->tabs();
43 $this->
lng = $DIC->language();
45 $this->
http = $DIC->http();
48 $this->
setPrefix(
"sr_other_role_" . $role_id);
50 $this->
setId(
"sr_other_role_" . $role_id);
67 $this->
addColumn($this->
lng->txt(
"firstname"),
"first_name");
68 $this->
addColumn($this->
lng->txt(
"lastname"),
"last_name");
80 $rbacreview = $DIC[
'rbacreview'];
82 $data = $this->
parseRows($rbacreview->assignedUsers($this->getRoleId()));
94 foreach ($user_ids as $user_id) {
104 $this->role_id = $role_id;
109 return $this->role_id;
116 $set[
"first_name"] = $user->getFirstname();
117 $set[
"last_name"] = $user->getLastname();
118 $set[
"user_object"] = $user;
119 $set[
"user_id"] = $user_id;
125 $this->tpl->setVariable(
"FIRST_NAME", $a_set[
"first_name"]);
126 $this->tpl->setVariable(
"LAST_NAME", $a_set[
"last_name"]);
128 if ($this->
ilAccess->checkAccess(
"write",
"", $this->http->wrapper()->query()->retrieve(
'ref_id', $this->
refinery->to()->int()))) {
129 $this->
ctrl->setParameterByClass(
"ilobjorgunitgui",
"obj_id", $a_set[
"user_id"]);
130 $this->
ctrl->setParameterByClass(
"ilObjOrgUnitGUI",
"role_id", $this->role_id);
133 $selection->setListTitle($this->
lng->txt(
"Actions"));
134 $selection->setId(
"selection_list_user_other_roles_" . $a_set[
"user_id"]);
136 $this->
lng->txt(
"remove"),
138 $this->
ctrl->getLinkTargetByClass(
"ilOrgUnitStaffGUI",
"confirmRemoveFromRole")
141 $this->tpl->setVariable(
"ACTIONS", $selection->getHTML());
setTopCommands(bool $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableTitle(bool $a_enabletitle)
setShowTemplates(bool $a_value)
ilAccessHandler $ilAccess
setFormName(string $a_name="")
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
static http()
Fetches the global http state from ILIAS.
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
Class ilObjectGUI Basic methods of all Output classes.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
__construct(ilObjectGUI $parent_obj, string $parent_cmd, string $role_id, string $template_context="")
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseRows(array $user_ids)
__construct(Container $dic, ilPlugin $plugin)
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)
getRowForUser(int $user_id)
ILIAS Refinery Factory $refinery
ILIAS HTTP Services $http
setEnableHeader(bool $a_enableheader)
setPrefix(string $a_prefix)