24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
55 $this->lng->loadLanguageModule(
'grp');
56 $this->lng->loadLanguageModule(
'crs');
59 $this->
setId(
'crs_wait_'. $a_parent_obj->object->getId());
63 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'members'));
66 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
71 $this->
addColumn($all_cols[$col][
'txt'], $col);
74 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"10%");
77 $this->
addMultiCommand(
'assignFromWaitingList',$this->lng->txt(
'assign'));
79 $this->
addMultiCommand(
'sendMailToSelectedUsers',$this->lng->txt(
'crs_mem_send_mail'));
83 $this->
setRowTemplate(
"tpl.show_waiting_list_row.html",
"Services/Membership");
90 $this->
enable(
'select_all');
113 $this->wait = $a_sub;
114 foreach($this->wait as
$usr_id => $usr_data)
116 $this->wait_user_ids[] =
$usr_id;
128 if(self::$all_columns)
133 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
135 self::$all_columns = $ef->getSelectableFieldsInfo($this->
getParentObject()->object->getId());
151 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
152 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
158 $this->tpl->setVariable(
'ALERT_MSG',
159 sprintf($this->lng->txt(
$prefix.
'_lim_assigned'),
165 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
166 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
173 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) :
'';
174 $this->tpl->setCurrentBlock(
'custom_fields');
175 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
176 $this->tpl->parseCurrentBlock();
181 $this->tpl->setCurrentBlock(
'custom_fields');
182 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
183 $this->tpl->parseCurrentBlock();
187 $this->tpl->setCurrentBlock(
'custom_fields');
188 $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] :
'');
189 $this->tpl->parseCurrentBlock();
196 #$this->tpl->setVariable('VAL_LOGIN',$a_set['login']);
198 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'id']);
199 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
200 $this->tpl->setVariable(
'MAIL_LINK',$link);
201 $this->tpl->setVariable(
'MAIL_TITLE',$this->lng->txt(
'crs_mem_send_mail'));
217 include_once
'./Services/User/classes/class.ilUserQuery.php';
220 unset($additional_fields[
"firstname"]);
221 unset($additional_fields[
"lastname"]);
222 unset($additional_fields[
"last_login"]);
223 unset($additional_fields[
"access_until"]);
225 $udf_ids = $usr_data_fields = $odf_ids = array();
226 foreach($additional_fields as $field)
228 if(substr($field, 0, 3) ==
'udf')
230 $udf_ids[] = substr($field, 4);
233 if(substr($field, 0, 3) ==
'odf')
235 $odf_ids[] = substr($field, 4);
239 $usr_data_fields[] = $field;
259 foreach((array) $usr_data[
'set'] as $user)
261 $usr_ids[] = $user[
'usr_id'];
265 $course_user_data = $this->
getParentObject()->readMemberData($usr_ids,$this->type ==
'admin');
266 $a_user_data = array();
267 foreach((array) $usr_data[
'set'] as $ud)
269 $a_user_data[$ud[
'usr_id']] = array_merge($ud,$course_user_data[$ud[
'usr_id']]);
275 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
284 foreach($fields as $field_id => $value)
286 $a_user_data[
$usr_id][
'udf_' . $field_id] = $value;
293 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
303 foreach($fields as $field_id => $value)
305 $a_user_data[
$usr_id][
'odf_' . $field_id] = $value;
310 foreach($usr_data[
'set'] as $user)
318 foreach($usr_data_fields as $field)
320 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
325 foreach($this->wait as
$usr_id => $usr_data)
327 $a_user_data[
$usr_id][
'sub_time'] = $usr_data[
'time'];
330 $this->
setMaxCount($usr_data[
'cnt'] ? $usr_data[
'cnt'] : 0);
331 return $this->
setData($a_user_data);