4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 require_once
'Services/Mail/classes/class.ilMailFormCall.php';
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_role_id, $a_editable =
true)
29 $this->
setId(
"rbac_ua_" . $a_role_id);
30 $this->role_id = $a_role_id;
31 $this->roleAssignmentEditable = $a_editable;
33 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
addColumn($this->lng->txt(
"login"),
"login",
"29%");
38 $this->
addColumn($this->lng->txt(
"firstname"),
"firstname",
"29%");
39 $this->
addColumn($this->lng->txt(
"lastname"),
"lastname",
"29%");
40 $this->
addColumn($this->lng->txt(
'actions'),
'',
'13%');
45 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $a_parent_cmd));
46 $this->
setRowTemplate(
"tpl.user_assignment_row.html",
"Services/AccessControl");
54 if ($this->roleAssignmentEditable) {
59 $lng->loadLanguageModule(
'user');
62 $lng->txt(
'clipboard_add_btn')
69 include_once
'./Services/Administration/classes/class.ilAdministrationGUI.php';
70 #$this->topGuiObj = new ilAdministrationGUI(); 96 global
$lng,$rbacreview;
100 include_once(
"./Services/User/classes/class.ilUserQuery.php");
126 $this->
setData($usr_data[
"set"]);
138 $this->tpl->setVariable(
"VAL_FIRSTNAME", $user[
"firstname"]);
139 $this->tpl->setVariable(
"VAL_LASTNAME", $user[
"lastname"]);
142 $user[
'usr_id'] != SYSTEM_USER_ID and
143 ($user[
'usr_id'] != ANONYMOUS_USER_ID or $this->
getRoleId() != ANONYMOUS_ROLE_ID) and
145 $this->tpl->setVariable(
"ID", $user[
"usr_id"]);
148 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
150 $actions->setSelectionHeaderClass(
"small");
151 $actions->setItemLinkClass(
"small");
153 $actions->setListTitle($lng->txt(
'actions'));
154 $actions->setId($user[
'usr_id']);
159 array(
'fr' => rawurlencode(base64_encode($ilCtrl->getLinkTarget($this->getParentObject(),
'userassignment',
'',
false,
false)))),
160 array(
'type' =>
'new',
'rcp_to' => $user[
'login'])
163 $lng->txt(
'message'),
168 if (strtolower(
$_GET[
"baseClass"]) ==
'iladministrationgui' &&
$_GET[
"admin_mode"] ==
"settings") {
169 $ilCtrl->setParameterByClass(
"ilobjusergui",
"ref_id", 7);
170 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id", $user[
"usr_id"]);
172 $link_change = $ilCtrl->getLinkTargetByClass(
array(
"iladministrationgui",
"ilobjusergui"),
"view");
174 $this->tpl->setVariable(
'VAL_LOGIN', $user[
'login']);
175 $this->tpl->setVariable(
'HREF_LOGIN', $link_change);
177 $this->lng->txt(
"edit"),
182 $this->tpl->setVariable(
'VAL_PLAIN_LOGIN', $user[
'login']);
186 ($this->
getRoleId() != SYSTEM_ROLE_ID or $user[
'usr_id'] != SYSTEM_USER_ID) and
187 ($this->
getRoleId() != ANONYMOUS_ROLE_ID or $user[
'usr_id'] != ANONYMOUS_USER_ID) and
189 $ilCtrl->setParameter($this->
getParentObject(),
"user_id", $user[
"usr_id"]);
190 $link_leave = $ilCtrl->getLinkTarget($this->
getParentObject(),
"deassignUser");
193 $this->lng->txt(
'remove'),
199 $this->tpl->setVariable(
'VAL_ACTIONS', $actions->getHTML());
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
fillRow($user)
Fill table row.
setExternalSegmentation($a_val)
Set external segmentation.
getItems()
Get user items.
getRoleId()
get current role id
getParentCmd()
Get parent command.
getOrderDirection()
Get order direction.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
__construct($a_parent_obj, $a_parent_cmd, $a_role_id, $a_editable=true)
Constructor.
isRoleAssignmentEditable()
Check if role assignment is editable.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
TableGUI class for role administration.
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.
setMaxCount($a_max_count)
set max.
setEnableTitle($a_enabletitle)
Set Enable Title.
static getUserListData( $a_order_field, $a_order_dir, $a_offset, $a_limit, $a_string_filter="", $a_activation_filter="", $a_last_login_filter=null, $a_limited_access_filter=false, $a_no_courses_filter=false, $a_course_group_filter=0, $a_role_filter=0, $a_user_folder_filter=null, $a_additional_fields='', $a_user_filter=null, $a_first_letter="", $a_authentication_filter=null)
Get data for user administration list.