4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
21 function __construct($a_parent_obj, $a_parent_cmd, $a_role_id)
25 $this->
setId(
"rbac_ua_".$a_role_id);
26 $this->role_id = $a_role_id;
32 $this->
addColumn($this->lng->txt(
"login"),
"login",
"29%");
33 $this->
addColumn($this->lng->txt(
"firstname"),
"firstname",
"29%");
34 $this->
addColumn($this->lng->txt(
"lastname"),
"lastname",
"29%");
35 $this->
addColumn($this->lng->txt(
'actions'),
'',
'13%');
40 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $a_parent_cmd));
41 $this->
setRowTemplate(
"tpl.user_assignment_row.html",
"Services/AccessControl");
67 global
$lng,$rbacreview;
71 include_once(
"./Services/User/classes/class.ilUserQuery.php");
87 if($rbacreview->isAssigned(SYSTEM_USER_ID, $this->getRoleId()))
95 $this->
setData($usr_data[
"set"]);
107 $this->tpl->setVariable(
"VAL_LOGIN",
$user[
"login"]);
108 $this->tpl->setVariable(
"VAL_FIRSTNAME",
$user[
"firstname"]);
109 $this->tpl->setVariable(
"VAL_LASTNAME",
$user[
"lastname"]);
111 if(
$user[
'usr_id'] != SYSTEM_USER_ID and
112 (
$user[
'usr_id'] != ANONYMOUS_USER_ID or $this->
getRoleId() != ANONYMOUS_ROLE_ID))
114 $this->tpl->setVariable(
"ID",
$user[
"usr_id"]);
117 include_once(
"./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
119 $actions->setSelectionHeaderClass(
"small");
120 $actions->setItemLinkClass(
"small");
122 $actions->setListTitle($lng->txt(
'actions'));
123 $actions->setId(
$user[
'usr_id']);
125 $link_contact =
"ilias.php?baseClass=ilMailGUI&type=new&rcp_to=".urlencode(
$user[
"login"]);
127 $lng->txt(
'message'),
132 if(strtolower(
$_GET[
"baseClass"]) ==
'iladministrationgui' &&
$_GET[
"admin_mode"] ==
"settings")
134 $ilCtrl->setParameterByClass(
"ilobjusergui",
"ref_id", 7);
135 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id",
$user[
"usr_id"]);
136 $link_change = $ilCtrl->getLinkTargetByClass(array(
"iladministrationgui",
"ilobjusergui"),
"view");
138 $this->lng->txt(
"edit"),
144 if(($this->
getRoleId() != SYSTEM_ROLE_ID or
$user[
'usr_id'] != SYSTEM_USER_ID) and
145 ($this->
getRoleId() != ANONYMOUS_ROLE_ID or
$user[
'usr_id'] != ANONYMOUS_USER_ID))
148 $link_leave = $ilCtrl->getLinkTarget($this->
getParentObject(),
"deassignUser");
151 $this->lng->txt(
'remove'),
157 $this->tpl->setVariable(
'VAL_ACTIONS',$actions->getHTML());