24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
53 $this->lng->loadLanguageModule(
'grp');
54 $this->lng->loadLanguageModule(
'trac');
57 $this->type = $a_type;
59 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
67 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
68 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
70 if($this->show_learning_progress)
72 $this->
addColumn($this->lng->txt(
'learning_progress'),
'progress');
75 if($this->privacy->enabledGroupAccessTimes())
77 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time_unix');
79 if($this->type ==
'admin')
83 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
91 $this->
addColumn($this->lng->txt(
''),
'optional');
94 $this->
setRowTemplate(
"tpl.show_participants_row.html",
"Modules/Group");
101 $this->
enable(
'select_all');
122 global $ilUser,$ilAccess;
124 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
125 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
126 if(!$ilAccess->checkAccessOfUser($a_set[
'usr_id'],
'read',
'',$this->getParentObject()->object->getRefId()) and
127 is_array($info = $ilAccess->getInfo()))
129 $this->tpl->setVariable(
'PARENT_ACCESS',$info[0][
'text']);
133 if($this->privacy->enabledGroupAccessTimes())
135 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
138 if($this->show_learning_progress)
140 $this->tpl->setCurrentBlock(
'lp');
141 switch($a_set[
'progress'])
144 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
149 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
154 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
159 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
164 $this->tpl->parseCurrentBlock();
168 if($this->type ==
'admin')
170 $this->tpl->setVariable(
'VAL_POSTNAME',
'admins');
171 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID',$a_set[
'usr_id']);
172 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
176 $this->tpl->setVariable(
'VAL_POSTNAME',
'members');
179 $this->ctrl->setParameter($this->parent_obj,
'member_id',$a_set[
'usr_id']);
180 $this->tpl->setVariable(
'LINK_NAME',$this->ctrl->getLinkTarget($this->parent_obj,
'editMember'));
181 $this->tpl->setVariable(
'LINK_TXT',$this->lng->txt(
'edit'));
182 $this->ctrl->clearParameters($this->parent_obj);
184 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);