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');
93 $this->
setRowTemplate(
"tpl.show_participants_row.html",
"Modules/Group");
100 $this->
enable(
'select_all');
121 global $ilUser,$ilAccess;
123 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
124 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
125 if(!$ilAccess->checkAccessOfUser($a_set[
'usr_id'],
'read',
'',$this->getParentObject()->object->getRefId()) and
126 is_array($info = $ilAccess->getInfo()))
128 $this->tpl->setVariable(
'PARENT_ACCESS',$info[0][
'text']);
132 if($this->privacy->enabledGroupAccessTimes())
134 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
137 if($this->show_learning_progress)
139 $this->tpl->setCurrentBlock(
'lp');
140 switch($a_set[
'progress'])
143 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
148 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
153 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
158 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
163 $this->tpl->parseCurrentBlock();
167 if($this->type ==
'admin')
169 $this->tpl->setVariable(
'VAL_POSTNAME',
'admins');
170 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID',$a_set[
'usr_id']);
171 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
175 $this->tpl->setVariable(
'VAL_POSTNAME',
'members');
178 $this->ctrl->setParameter($this->parent_obj,
'member_id',$a_set[
'usr_id']);
179 $this->tpl->setVariable(
'LINK_NAME',$this->ctrl->getLinkTarget($this->parent_obj,
'editMember'));
180 $this->tpl->setVariable(
'LINK_TXT',$this->lng->txt(
'edit'));
181 $this->ctrl->clearParameters($this->parent_obj);
183 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);