24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
61 $this->lng->loadLanguageModule(
'grp');
62 $this->lng->loadLanguageModule(
'crs');
63 $this->lng->loadLanguageModule(
'sess');
64 $this->lng->loadLanguageModule(
'ps');
75 parent::__construct($a_parent_obj,
'participants');
77 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'participants'));
80 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
84 $this->
addColumn($all_cols[$col][
'txt'], $col);
87 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"10%");
90 $this->
addMultiCommand(
'confirmAssignFromWaitingList', $this->lng->txt(
'assign'));
91 $this->
addMultiCommand(
'confirmRefuseFromList', $this->lng->txt(
'refuse'));
92 $this->
addMultiCommand(
'sendMailToSelectedUsers', $this->lng->txt(
'crs_mem_send_mail'));
98 $this->
setRowTemplate(
"tpl.show_waiting_list_row.html",
"Services/Membership");
103 $this->
enable(
'select_all');
107 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
134 $this->wait_user_ids = $this->wait = [];
135 foreach ($a_user_ids as $usr_id) {
136 $this->wait_user_ids[] = $usr_id;
147 if (self::$all_columns) {
148 return self::$all_columns;
151 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
157 is_array(self::$all_columns) &&
158 array_key_exists(
'consultation_hour', self::$all_columns)
160 unset(self::$all_columns[
'consultation_hour']);
164 !is_array(self::$all_columns) ||
165 !array_key_exists(
'login', self::$all_columns)
167 self::$all_columns[
'login'] = [
169 'txt' => $this->lng->txt(
'login')
172 return self::$all_columns;
189 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
190 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
195 $this->tpl->setVariable(
198 $this->lng->txt(
$prefix .
'_lim_assigned'),
204 $this->tpl->setVariable(
'VAL_ID', $a_set[
'usr_id']);
205 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
210 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) :
'';
211 $this->tpl->setCurrentBlock(
'custom_fields');
212 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
213 $this->tpl->parseCurrentBlock();
218 $this->tpl->setCurrentBlock(
'custom_fields');
219 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
220 $this->tpl->parseCurrentBlock();
223 case 'odf_last_update':
224 $this->tpl->setVariable(
'VAL_CUST', (
string) $a_set[
'odf_info_txt']);
228 $this->tpl->setCurrentBlock(
'custom_fields');
229 include_once
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
230 $this->tpl->setVariable(
'VAL_CUST', (
string) ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set[
'usr_id']));
231 $this->tpl->parseCurrentBlock();
236 $this->tpl->setCurrentBlock(
'custom_fields');
237 $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] :
'');
238 $this->tpl->parseCurrentBlock();
245 #$this->tpl->setVariable('VAL_LOGIN',$a_set['login']); 261 include_once
'./Services/User/classes/class.ilUserQuery.php';
264 unset($additional_fields[
"firstname"]);
265 unset($additional_fields[
"lastname"]);
266 unset($additional_fields[
"last_login"]);
267 unset($additional_fields[
"access_until"]);
268 unset($additional_fields[
'org_units']);
270 $udf_ids = $usr_data_fields = $odf_ids = array();
271 foreach ($additional_fields as $field) {
272 if (substr($field, 0, 3) ==
'udf') {
273 $udf_ids[] = substr($field, 4);
276 if (substr($field, 0, 3) ==
'odf') {
277 $odf_ids[] = substr($field, 4);
281 $usr_data_fields[] = $field;
325 foreach ((array) $usr_data[
'set'] as
$user) {
326 $usr_ids[] = $user[
'usr_id'];
330 $course_user_data = $this->
getParentObject()->readMemberData($usr_ids, array());
331 $a_user_data = array();
332 foreach ((array) $usr_data[
'set'] as $ud) {
333 $a_user_data[$ud[
'usr_id']] = array_merge($ud, $course_user_data[$ud[
'usr_id']]);
338 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
340 foreach (
$data as $usr_id => $fields) {
345 foreach ($fields as $field_id => $value) {
346 $a_user_data[$usr_id][
'udf_' . $field_id] = $value;
352 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
354 foreach (
$data as $usr_id => $fields) {
356 if (!$this->
checkAcceptance($usr_id) || !in_array($usr_id, $usr_ids)) {
360 foreach ($fields as $field_id => $value) {
361 $a_user_data[$usr_id][
'odf_' . $field_id] = $value;
366 include_once
'./Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
368 if (!isset($a_user_data[$usr_id])) {
372 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
373 if ($usr_id == $edit_info[
'update_user']) {
374 $a_user_data[$usr_id][
'odf_last_update'] =
'';
375 $a_user_data[$usr_id][
'odf_info_txt'] =
$GLOBALS[
'DIC'][
'lng']->txt(
'cdf_edited_by_self');
377 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
381 $a_user_data[$usr_id][
'odf_last_update'] = $edit_info[
'update_user'];
382 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
390 foreach ($usr_data[
'set'] as $user) {
396 foreach ($usr_data_fields as $field) {
397 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
402 foreach ($this->wait as $usr_id => $wait_usr_data) {
403 if (isset($a_user_data[$usr_id])) {
404 $a_user_data[$usr_id][
'sub_time'] = $wait_usr_data[
'time'];
408 $this->
setMaxCount($usr_data[
'cnt'] ? $usr_data[
'cnt'] : 0);
409 return $this->
setData($a_user_data);
418 if (!self::$has_odf_definitions) {
419 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
420 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
421 $this->tpl->setVariable(
'MAIL_LINK', $link);
422 $this->tpl->setVariable(
'MAIL_TITLE', $this->lng->txt(
'crs_mem_send_mail'));
427 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
429 $list->setSelectionHeaderClass(
'small');
430 $list->setItemLinkClass(
'small');
431 $list->setId(
'actl_' . $a_set[
'usr_id'] .
'_' . $this->
getId());
432 $list->setListTitle($this->lng->txt(
'actions'));
434 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
435 $this->ctrl->setParameter($this->parent_obj,
'member_id', $a_set[
'usr_id']);
437 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
438 $list->addItem($trans,
'', $link,
'sendMailToSelectedUsers');
440 $this->ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id', $a_set[
'usr_id']);
442 $list->addItem($trans,
'', $this->ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember'));
444 $this->tpl->setVariable(
'ACTION_USER',
$list->getHTML());
static _lookupName($a_user_id)
lookup user name
setExternalSorting($a_val)
Set external sorting.
if(isset($_REQUEST['delete'])) $list
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static _getValuesByObjId($a_obj_id)
Get values by obj_id (for all users)
setExternalSegmentation($a_val)
Set external segmentation.
resetOffset($a_in_determination=false)
Reset offset.
static getAssignedObjects()
Alway call checkGroupingDependencies before.
static _lookupTitle($a_id)
lookup object title
getOrderDirection()
Get order direction.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
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.
__construct($a_parent_obj, ilObject $rep_object, $waiting_list)
ilWaitingListTableGUI constructor.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
static _getInstanceByType($a_type)
Get Singleton Instance.
getExternalSegmentation()
Get external segmentation.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
getSelectedColumns()
Get selected columns.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setFormName($a_formname="")
Set Form name.
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.
GUI class for course/group waiting list.
static getLogger($a_component_id)
Get component logger.
static _getInstance()
Get instance of ilPrivacySettings.
getSelectableColumns()
Get selectable columns.
setUserIds($a_user_ids)
Set user ids.
setMaxCount($a_max_count)
set max.
static lookupEntriesByObjectId($a_obj_id)
Get entries by obj_id type $ilDB.
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="", $a_authentication_filter=null)
Get data for user administration list.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
getRepositoryObject()
Get repository object.