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');
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'));
97 $this->lng->loadLanguageModule(
'user');
98 $this->
addMultiCommand(
'addToClipboard', $this->lng->txt(
'clipboard_add_btn'));
104 $this->
setRowTemplate(
"tpl.show_waiting_list_row.html",
"Services/Membership");
109 $this->
enable(
'select_all');
113 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
140 $this->wait_user_ids = $this->wait = [];
141 foreach ($a_user_ids as $usr_id) {
142 $this->wait_user_ids[] = $usr_id;
153 if (self::$all_columns) {
154 return self::$all_columns;
157 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
163 is_array(self::$all_columns) &&
164 array_key_exists(
'consultation_hour', self::$all_columns)
166 unset(self::$all_columns[
'consultation_hour']);
170 !is_array(self::$all_columns) ||
171 !array_key_exists(
'login', self::$all_columns)
173 self::$all_columns[
'login'] = [
175 'txt' => $this->lng->txt(
'login')
178 return self::$all_columns;
195 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
196 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
201 $this->tpl->setVariable(
204 $this->lng->txt(
$prefix .
'_lim_assigned'),
210 $this->tpl->setVariable(
'VAL_ID', $a_set[
'usr_id']);
211 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
216 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) :
'';
217 $this->tpl->setCurrentBlock(
'custom_fields');
218 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
219 $this->tpl->parseCurrentBlock();
224 $this->tpl->setCurrentBlock(
'custom_fields');
225 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
226 $this->tpl->parseCurrentBlock();
229 case 'odf_last_update':
230 $this->tpl->setVariable(
'VAL_CUST', (
string) $a_set[
'odf_info_txt']);
234 $this->tpl->setCurrentBlock(
'custom_fields');
235 include_once
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
236 $this->tpl->setVariable(
'VAL_CUST', (
string) ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set[
'usr_id']));
237 $this->tpl->parseCurrentBlock();
242 $this->tpl->setCurrentBlock(
'custom_fields');
243 $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] :
'');
244 $this->tpl->parseCurrentBlock();
251 #$this->tpl->setVariable('VAL_LOGIN',$a_set['login']); 267 include_once
'./Services/User/classes/class.ilUserQuery.php';
270 unset($additional_fields[
"firstname"]);
271 unset($additional_fields[
"lastname"]);
272 unset($additional_fields[
"last_login"]);
273 unset($additional_fields[
"access_until"]);
274 unset($additional_fields[
'org_units']);
276 $udf_ids = $usr_data_fields = $odf_ids = array();
277 foreach ($additional_fields as $field) {
278 if (substr($field, 0, 3) ==
'udf') {
279 $udf_ids[] = substr($field, 4);
282 if (substr($field, 0, 3) ==
'odf') {
283 $odf_ids[] = substr($field, 4);
287 $usr_data_fields[] = $field;
331 foreach ((array) $usr_data[
'set'] as $user) {
332 $usr_ids[] = $user[
'usr_id'];
336 $course_user_data = $this->
getParentObject()->readMemberData($usr_ids, array());
337 $a_user_data = array();
338 foreach ((array) $usr_data[
'set'] as $ud) {
339 $a_user_data[$ud[
'usr_id']] = array_merge($ud, $course_user_data[$ud[
'usr_id']]);
344 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
346 foreach (
$data as $usr_id => $fields) {
351 foreach ($fields as $field_id => $value) {
352 $a_user_data[$usr_id][
'udf_' . $field_id] = $value;
358 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
360 foreach (
$data as $usr_id => $fields) {
362 if (!$this->
checkAcceptance($usr_id) || !in_array($usr_id, $usr_ids)) {
366 foreach ($fields as $field_id => $value) {
367 $a_user_data[$usr_id][
'odf_' . $field_id] = $value;
372 include_once
'./Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
374 if (!isset($a_user_data[$usr_id])) {
378 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
379 if ($usr_id == $edit_info[
'update_user']) {
380 $a_user_data[$usr_id][
'odf_last_update'] =
'';
381 $a_user_data[$usr_id][
'odf_info_txt'] =
$GLOBALS[
'DIC'][
'lng']->txt(
'cdf_edited_by_self');
383 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
387 $a_user_data[$usr_id][
'odf_last_update'] = $edit_info[
'update_user'];
388 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
396 foreach ($usr_data[
'set'] as $user) {
402 foreach ($usr_data_fields as $field) {
403 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
408 foreach ($this->wait as $usr_id => $wait_usr_data) {
409 if (isset($a_user_data[$usr_id])) {
410 $a_user_data[$usr_id][
'sub_time'] = $wait_usr_data[
'time'];
414 $this->
setMaxCount($usr_data[
'cnt'] ? $usr_data[
'cnt'] : 0);
415 return $this->
setData($a_user_data);
424 if (!self::$has_odf_definitions) {
425 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
426 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
427 $this->tpl->setVariable(
'MAIL_LINK', $link);
428 $this->tpl->setVariable(
'MAIL_TITLE', $this->lng->txt(
'crs_mem_send_mail'));
433 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
435 $list->setSelectionHeaderClass(
'small');
436 $list->setItemLinkClass(
'small');
437 $list->setId(
'actl_' . $a_set[
'usr_id'] .
'_' . $this->
getId());
438 $list->setListTitle($this->lng->txt(
'actions'));
440 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
441 $this->ctrl->setParameter($this->parent_obj,
'member_id', $a_set[
'usr_id']);
443 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
444 $list->addItem($trans,
'', $link,
'sendMailToSelectedUsers');
446 $this->ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id', $a_set[
'usr_id']);
448 $list->addItem($trans,
'', $this->ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember'));
450 $this->tpl->setVariable(
'ACTION_USER', $list->getHTML());
static _lookupName($a_user_id)
lookup user name
setExternalSorting($a_val)
Set external sorting.
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
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
__construct(Container $dic, ilPlugin $plugin)
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.
getRepositoryObject()
Get repository object.