4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
39 $this->lng->loadLanguageModule(
'grp');
40 $this->lng->loadLanguageModule(
'trac');
43 $this->type = $a_type;
45 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
48 $this->
setId(
'grp_'.$a_type.
'_'.$a_parent_obj->object->getId());
56 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
61 $this->
addColumn($all_cols[$col][
'txt'],$col);
64 if($this->show_learning_progress)
66 $this->
addColumn($this->lng->txt(
'learning_progress'),
'progress');
69 if($this->privacy->enabledGroupAccessTimes())
71 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time_unix');
73 if($this->type ==
'admin')
77 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
85 $this->
addColumn($this->lng->txt(
''),
'optional');
88 $this->
setRowTemplate(
"tpl.show_participants_row.html",
"Modules/Group");
95 $this->
enable(
'select_all');
113 if(self::$all_columns)
118 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
120 self::$all_columns = $ef->getSelectableFieldsInfo($this->
getParentObject()->object->getId());
134 global $ilUser,$ilAccess;
136 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
137 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
138 if(!$ilAccess->checkAccessOfUser($a_set[
'usr_id'],
'read',
'',$this->getParentObject()->object->getRefId()) and
139 is_array($info = $ilAccess->getInfo()))
141 $this->tpl->setCurrentBlock(
'access_warning');
142 $this->tpl->setVariable(
'PARENT_ACCESS',$info[0][
'text']);
143 $this->tpl->parseCurrentBlock();
148 $this->tpl->setCurrentBlock(
'access_warning');
149 $this->tpl->setVariable(
'PARENT_ACCESS',$this->lng->txt(
'usr_account_inactive'));
150 $this->tpl->parseCurrentBlock();
159 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_'.$a_set[
'gender']) :
'';
160 $this->tpl->setCurrentBlock(
'custom_fields');
161 $this->tpl->setVariable(
'VAL_CUST',$a_set[$field]);
162 $this->tpl->parseCurrentBlock();
167 $this->tpl->setCurrentBlock(
'custom_fields');
168 $this->tpl->setVariable(
'VAL_CUST',$a_set[$field]);
169 $this->tpl->parseCurrentBlock();
173 $this->tpl->setCurrentBlock(
'custom_fields');
174 $this->tpl->setVariable(
'VAL_CUST',$a_set[$field] ? $a_set[$field] :
'');
175 $this->tpl->parseCurrentBlock();
180 if($this->privacy->enabledGroupAccessTimes())
182 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
185 if($this->show_learning_progress)
187 $this->tpl->setCurrentBlock(
'lp');
188 switch($a_set[
'progress'])
191 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
196 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
201 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
206 $this->tpl->setVariable(
'LP_STATUS_ALT',$this->lng->txt($a_set[
'progress']));
211 $this->tpl->parseCurrentBlock();
215 if($this->type ==
'admin')
217 $this->tpl->setVariable(
'VAL_POSTNAME',
'admins');
218 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID',$a_set[
'usr_id']);
219 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
223 $this->tpl->setVariable(
'VAL_POSTNAME',
'members');
226 $this->ctrl->setParameter($this->parent_obj,
'member_id',$a_set[
'usr_id']);
227 $this->tpl->setVariable(
'LINK_NAME',$this->ctrl->getLinkTarget($this->parent_obj,
'editMember'));
228 $this->tpl->setVariable(
'LINK_TXT',$this->lng->txt(
'edit'));
229 $this->ctrl->clearParameters($this->parent_obj);
231 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
241 include_once
'./Services/User/classes/class.ilUserQuery.php';
244 unset($additional_fields[
"firstname"]);
245 unset($additional_fields[
"lastname"]);
246 unset($additional_fields[
"last_login"]);
247 unset($additional_fields[
"access_until"]);
259 $udf_ids = $usr_data_fields = $odf_ids = array();
260 foreach($additional_fields as $field)
262 if(substr($field,0,3) ==
'udf')
264 $udf_ids[] = substr($field,4);
267 if(substr($field,0,3) ==
'odf')
269 $odf_ids[] = substr($field,4);
273 $usr_data_fields[] = $field;
295 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
304 foreach($fields as $field_id => $value)
306 $a_user_data[
$usr_id][
'udf_'.$field_id] = $value;
313 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
322 foreach($fields as $field_id => $value)
324 $a_user_data[
$usr_id][
'odf_'.$field_id] = $value;
329 foreach($usr_data[
'set'] as
$user)
337 foreach($usr_data_fields as $field)
339 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
342 return $this->
setData($a_user_data);
352 if(!self::$confirmation_required)
356 if(!self::$export_allowed)
360 return in_array($a_usr_id,self::$accepted_ids);
370 if(self::$accepted_ids !== NULL)
378 include_once
'Services/Membership/classes/class.ilMemberAgreement.php';