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());
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static _lookupTitle($a_id)
lookup object title
Class ilOrgUnitOtherRolesTableGUI.
setRowForUser(&$set, $user_id)
fillRow($set)
Standard Version of Fill Row.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
setEnableHeader($a_enableheader)
Set Enable Header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
ilTable2GUI constructor.
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormName($a_formname="")
Set Form name.
setShowTemplates($a_value)
Toggle templates.