18 $ilTabs = $DIC[
'ilTabs'];
24 $this->tabs = $ilTabs;
27 $this->
setPrefix(
"sr_other_role_" . $role_id);
29 $this->
setId(
"sr_other_role_" . $role_id);
52 $this->
addColumn($this->lng->txt(
"firstname"),
"first_name");
53 $this->
addColumn($this->lng->txt(
"lastname"),
"last_name");
54 $this->
addColumn($this->lng->txt(
"action"));
65 $rbacreview = $DIC[
'rbacreview'];
67 $data = $this->
parseRows($rbacreview->assignedUsers($this->getRoleId()));
75 foreach ($user_ids as $user_id) {
88 $this->role_id = $role_id;
96 return $this->role_id;
102 $set[
"first_name"] = $user->getFirstname();
103 $set[
"last_name"] = $user->getLastname();
104 $set[
"user_object"] = $user;
105 $set[
"user_id"] = $user_id;
112 $ilAccess = $DIC[
'ilAccess'];
114 $ilAccess = $DIC[
'ilAccess'];
115 $this->tpl->setVariable(
"FIRST_NAME", $set[
"first_name"]);
116 $this->tpl->setVariable(
"LAST_NAME", $set[
"last_name"]);
119 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]) && !$this->recursive) {
120 $this->ctrl->setParameterByClass(
"ilobjorgunitgui",
"obj_id", $set[
"user_id"]);
121 $this->ctrl->setParameterByClass(
"ilObjOrgUnitGUI",
"role_id", $this->role_id);
124 $selection->setListTitle(
$lng->txt(
"Actions"));
125 $selection->setId(
"selection_list_user_other_roles_" . $set[
"user_id"]);
126 $selection->addItem($this->lng->txt(
"remove"),
"delete_from_role", $this->ctrl->getLinkTargetByClass(
"ilOrgUnitStaffGUI",
"confirmRemoveFromRole"));
128 $this->tpl->setVariable(
"ACTIONS", $selection->getHTML());
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
ilTable2GUI constructor.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setShowTemplates($a_value)
Toggle templates.
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
Class ilOrgUnitOtherRolesTableGUI.
setFormName($a_formname="")
Set Form name.
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.
setRowForUser(&$set, $user_id)
setEnableTitle($a_enabletitle)
Set Enable Title.