24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
59 $this->lng->loadLanguageModule(
'grp');
60 $this->lng->loadLanguageModule(
'crs');
61 $this->lng->loadLanguageModule(
'sess');
62 $this->lng->loadLanguageModule(
'ps');
68 parent::__construct($a_parent_obj,
'participants');
71 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'participants'));
74 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
79 $this->
addColumn($all_cols[$col][
'txt'], $col);
82 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"10%");
85 $this->
addMultiCommand(
'confirmAssignFromWaitingList',$this->lng->txt(
'assign'));
86 $this->
addMultiCommand(
'confirmRefuseFromList',$this->lng->txt(
'refuse'));
87 $this->
addMultiCommand(
'sendMailToSelectedUsers',$this->lng->txt(
'crs_mem_send_mail'));
91 $this->
setRowTemplate(
"tpl.show_waiting_list_row.html",
"Services/Membership");
98 $this->
enable(
'select_all');
111 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
134 $this->wait = $a_sub;
135 foreach($this->wait as $usr_id => $usr_data)
137 $this->wait_user_ids[] = $usr_id;
149 if(self::$all_columns)
151 return self::$all_columns;
154 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
157 return self::$all_columns;
172 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
173 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
179 $this->tpl->setVariable(
'ALERT_MSG',
180 sprintf($this->lng->txt(
$prefix.
'_lim_assigned'),
186 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
187 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
194 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) :
'';
195 $this->tpl->setCurrentBlock(
'custom_fields');
196 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
197 $this->tpl->parseCurrentBlock();
202 $this->tpl->setCurrentBlock(
'custom_fields');
203 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
204 $this->tpl->parseCurrentBlock();
207 case 'odf_last_update':
208 $this->tpl->setVariable(
'VAL_CUST',(
string) $a_set[
'odf_info_txt']);
212 $this->tpl->setCurrentBlock(
'custom_fields');
213 include_once
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
214 $this->tpl->setVariable(
'VAL_CUST', (
string) ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set[
'usr_id']));
215 $this->tpl->parseCurrentBlock();
220 $this->tpl->setCurrentBlock(
'custom_fields');
221 $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] :
'');
222 $this->tpl->parseCurrentBlock();
229 #$this->tpl->setVariable('VAL_LOGIN',$a_set['login']); 247 include_once
'./Services/User/classes/class.ilUserQuery.php';
250 unset($additional_fields[
"firstname"]);
251 unset($additional_fields[
"lastname"]);
252 unset($additional_fields[
"last_login"]);
253 unset($additional_fields[
"access_until"]);
254 unset($additional_fields[
'org_units']);
256 $udf_ids = $usr_data_fields = $odf_ids =
array();
257 foreach($additional_fields as $field)
259 if(substr($field, 0, 3) ==
'udf')
261 $udf_ids[] = substr($field, 4);
264 if(substr($field, 0, 3) ==
'odf')
266 $odf_ids[] = substr($field, 4);
270 $usr_data_fields[] = $field;
290 foreach((
array) $usr_data[
'set'] as $user)
292 $usr_ids[] = $user[
'usr_id'];
297 $a_user_data =
array();
298 foreach((
array) $usr_data[
'set'] as $ud)
300 $a_user_data[$ud[
'usr_id']] = array_merge($ud,$course_user_data[$ud[
'usr_id']]);
306 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
308 foreach(
$data as $usr_id => $fields)
315 foreach($fields as $field_id => $value)
317 $a_user_data[$usr_id][
'udf_' . $field_id] = $value;
324 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
326 foreach(
$data as $usr_id => $fields)
334 foreach($fields as $field_id => $value)
336 $a_user_data[$usr_id][
'odf_' . $field_id] = $value;
341 include_once
'./Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
344 if(!isset($a_user_data[$usr_id]))
349 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
350 if($usr_id == $edit_info[
'update_user'])
352 $a_user_data[$usr_id][
'odf_last_update'] =
'';
353 $a_user_data[$usr_id][
'odf_info_txt'] =
$GLOBALS[
'lng']->txt(
'cdf_edited_by_self');
356 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_'.$edit_info[
'editing_time']->get(
IL_CAL_UNIX));
357 $a_user_data[$usr_id][
'odf_info_txt'] .= (
', '.ilDatePresentation::formatDate($edit_info[
'editing_time']));
362 $a_user_data[$usr_id][
'odf_last_update'] = $edit_info[
'update_user'];
363 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_'.$edit_info[
'editing_time']->get(
IL_CAL_UNIX));
366 $a_user_data[$usr_id][
'odf_info_txt'] = ($name[
'firstname'].
' '.$name[
'lastname'].
', '.
ilDatePresentation::formatDate($edit_info[
'editing_time']));
372 foreach($usr_data[
'set'] as $user)
380 foreach($usr_data_fields as $field)
382 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
387 foreach($this->wait as $usr_id => $usr_data)
389 $a_user_data[$usr_id][
'sub_time'] = $usr_data[
'time'];
392 $this->
setMaxCount($usr_data[
'cnt'] ? $usr_data[
'cnt'] : 0);
393 return $this->
setData($a_user_data);
402 if(!self::$has_odf_definitions)
404 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'usr_id']);
405 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
406 $this->tpl->setVariable(
'MAIL_LINK',$link);
407 $this->tpl->setVariable(
'MAIL_TITLE',$this->lng->txt(
'crs_mem_send_mail'));
412 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
414 $list->setSelectionHeaderClass(
'small');
415 $list->setItemLinkClass(
'small');
416 $list->setId(
'actl_'.$a_set[
'usr_id'].
'_'.$this->
getId());
417 $list->setListTitle($this->lng->txt(
'actions'));
419 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'usr_id']);
420 $this->ctrl->setParameter($this->parent_obj,
'member_id', $a_set[
'usr_id']);
422 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
423 $list->addItem($trans,
'', $link,
'sendMailToSelectedUsers');
425 $this->ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id',$a_set[
'usr_id']);
427 $list->addItem($trans,
'', $this->ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember'));
429 $this->tpl->setVariable(
'ACTION_USER',$list->getHTML());
static _lookupName($a_user_id)
lookup user name
static getUserListData($a_order_field, $a_order_dir, $a_offset, $a_limit, $a_string_filter="", $a_activation_filter="", $a_last_login_filter=null, $a_limited_access_filter=false, $a_no_courses_filter=false, $a_course_group_filter=0, $a_role_filter=0, $a_user_folder_filter=null, $a_additional_fields='', $a_user_filter=null, $a_first_letter="")
Get data for user administration list.
static _getValuesByObjId($a_obj_id)
Get values by obj_id (for all users)
Class ilObject Basic functions for all objects.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getAssignedObjects()
Alway call checkGroupingDependencies before.
static _lookupTitle($a_id)
lookup object title
getOrderDirection()
Get order direction.
__construct($a_parent_obj, ilObject $rep_object, $waiting_list, $show_content=true)
Constructor.
getParentObject()
Get parent object.
static $has_odf_definitions
showActionLinks($a_set)
Show action links (mail ; edit crs|grp data)
static lookupData($a_user_ids, $a_field_ids)
Lookup data.
setUsers($a_sub)
set subscribers
static _getInstanceByType($a_type)
Get Singleton Instance.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
static formatDate(ilDateTime $date)
Format a date public.
getSelectedColumns()
Get selected columns.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _hasFields($a_container_id)
Check if there are any define fields.
static _checkGroupingDependencies(&$container_obj, $a_user_id=null)
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setFormName($a_formname="")
Set Form name.
GUI class for course/group waiting list.
static _getInstance()
Get instance of ilPrivacySettings.
getSelectableColumns()
Get selectable columns.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setMaxCount($a_max_count)
set max.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static lookupEntriesByObjectId($a_obj_id)
Get entries by obj_id type $ilDB.
getRepositoryObject()
Get repository object.