24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
50 $this->lng->loadLanguageModule(
'grp');
53 $this->container = $a_parent_obj;
55 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
62 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
64 $this->
addColumn($this->lng->txt(
'lastname'),
'lastname',
'20%');
65 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
67 if($this->privacy->enabledGroupAccessTimes())
69 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
71 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
72 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
77 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/Group");
94 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
95 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
97 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
99 if($this->privacy->enabledGroupAccessTimes())
101 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
103 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID',$a_set[
'usr_id']);
104 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
106 $this->tpl->setVariable(
'NUM_ROLES',count($this->participants->getRoles()));
108 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
109 foreach($this->container->object->getLocalGroupRoles(
true) as
$name => $role_id)
111 $this->tpl->setCurrentBlock(
'roles');
112 $this->tpl->setVariable(
'ROLE_ID',$role_id);
113 $this->tpl->setVariable(
'ROLE_NAME',$name);
115 if(in_array($role_id,$assigned))
117 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
119 $this->tpl->parseCurrentBlock();