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');
73 parent::__construct($a_parent_obj,
'participants');
75 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'participants'));
78 $this->
addColumn($this->lng->txt(
'name'),
'lastname',
'20%');
82 $this->
addColumn($all_cols[$col][
'txt'], $col);
85 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"10%");
88 $this->
addMultiCommand(
'confirmAssignFromWaitingList', $this->lng->txt(
'assign'));
89 $this->
addMultiCommand(
'confirmRefuseFromList', $this->lng->txt(
'refuse'));
90 $this->
addMultiCommand(
'sendMailToSelectedUsers', $this->lng->txt(
'crs_mem_send_mail'));
95 $this->
setRowTemplate(
"tpl.show_waiting_list_row.html",
"Services/Membership");
101 $this->
enable(
'select_all');
112 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
139 $this->wait_user_ids = $this->wait = [];
140 foreach ($a_user_ids as $usr_id) {
141 $this->wait_user_ids[] = $usr_id;
152 if (self::$all_columns) {
153 return self::$all_columns;
156 include_once
'./Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
162 is_array(self::$all_columns) &&
163 array_key_exists(
'consultation_hour', self::$all_columns)
165 unset(self::$all_columns[
'consultation_hour']);
167 return self::$all_columns;
182 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
183 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
188 $this->tpl->setVariable(
191 $this->lng->txt(
$prefix .
'_lim_assigned'),
197 $this->tpl->setVariable(
'VAL_ID', $a_set[
'usr_id']);
198 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
203 $a_set[
'gender'] = $a_set[
'gender'] ? $this->lng->txt(
'gender_' . $a_set[
'gender']) :
'';
204 $this->tpl->setCurrentBlock(
'custom_fields');
205 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
206 $this->tpl->parseCurrentBlock();
211 $this->tpl->setCurrentBlock(
'custom_fields');
212 $this->tpl->setVariable(
'VAL_CUST', $a_set[$field]);
213 $this->tpl->parseCurrentBlock();
216 case 'odf_last_update':
217 $this->tpl->setVariable(
'VAL_CUST', (
string) $a_set[
'odf_info_txt']);
221 $this->tpl->setCurrentBlock(
'custom_fields');
222 include_once
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php';
223 $this->tpl->setVariable(
'VAL_CUST', (
string) ilOrgUnitPathStorage::getTextRepresentationOfUsersOrgUnits($a_set[
'usr_id']));
224 $this->tpl->parseCurrentBlock();
229 $this->tpl->setCurrentBlock(
'custom_fields');
230 $this->tpl->setVariable(
'VAL_CUST', isset($a_set[$field]) ? (
string) $a_set[$field] :
'');
231 $this->tpl->parseCurrentBlock();
238 #$this->tpl->setVariable('VAL_LOGIN',$a_set['login']); 254 include_once
'./Services/User/classes/class.ilUserQuery.php';
257 unset($additional_fields[
"firstname"]);
258 unset($additional_fields[
"lastname"]);
259 unset($additional_fields[
"last_login"]);
260 unset($additional_fields[
"access_until"]);
261 unset($additional_fields[
'org_units']);
263 $udf_ids = $usr_data_fields = $odf_ids =
array();
264 foreach ($additional_fields as $field) {
265 if (substr($field, 0, 3) ==
'udf') {
266 $udf_ids[] = substr($field, 4);
269 if (substr($field, 0, 3) ==
'odf') {
270 $odf_ids[] = substr($field, 4);
274 $usr_data_fields[] = $field;
318 foreach ((
array) $usr_data[
'set'] as $user) {
319 $usr_ids[] = $user[
'usr_id'];
324 $a_user_data =
array();
325 foreach ((
array) $usr_data[
'set'] as $ud) {
326 $a_user_data[$ud[
'usr_id']] = array_merge($ud, $course_user_data[$ud[
'usr_id']]);
331 include_once
'./Services/User/classes/class.ilUserDefinedData.php';
333 foreach (
$data as $usr_id => $fields) {
338 foreach ($fields as $field_id => $value) {
339 $a_user_data[$usr_id][
'udf_' . $field_id] = $value;
345 include_once
'./Modules/Course/classes/Export/class.ilCourseUserData.php';
347 foreach (
$data as $usr_id => $fields) {
349 if (!$this->
checkAcceptance($usr_id) || !in_array($usr_id, $usr_ids)) {
353 foreach ($fields as $field_id => $value) {
354 $a_user_data[$usr_id][
'odf_' . $field_id] = $value;
359 include_once
'./Services/Membership/classes/class.ilObjectCustomUserFieldHistory.php';
361 if (!isset($a_user_data[$usr_id])) {
365 include_once
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
366 if ($usr_id == $edit_info[
'update_user']) {
367 $a_user_data[$usr_id][
'odf_last_update'] =
'';
368 $a_user_data[$usr_id][
'odf_info_txt'] =
$GLOBALS[
'lng']->txt(
'cdf_edited_by_self');
370 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
374 $a_user_data[$usr_id][
'odf_last_update'] = $edit_info[
'update_user'];
375 $a_user_data[$usr_id][
'odf_last_update'] .= (
'_' . $edit_info[
'editing_time']->get(
IL_CAL_UNIX));
383 foreach ($usr_data[
'set'] as $user) {
389 foreach ($usr_data_fields as $field) {
390 $a_user_data[$user[
'usr_id']][$field] = $user[$field] ? $user[$field] :
'';
395 foreach ($this->wait as $usr_id => $wait_usr_data) {
396 if (isset($a_user_data[$usr_id])) {
397 $a_user_data[$usr_id][
'sub_time'] = $wait_usr_data[
'time'];
401 $this->
setMaxCount($usr_data[
'cnt'] ? $usr_data[
'cnt'] : 0);
402 return $this->
setData($a_user_data);
411 if (!self::$has_odf_definitions) {
412 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
413 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
414 $this->tpl->setVariable(
'MAIL_LINK', $link);
415 $this->tpl->setVariable(
'MAIL_TITLE', $this->lng->txt(
'crs_mem_send_mail'));
420 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
422 $list->setSelectionHeaderClass(
'small');
423 $list->setItemLinkClass(
'small');
424 $list->setId(
'actl_' . $a_set[
'usr_id'] .
'_' . $this->
getId());
425 $list->setListTitle($this->lng->txt(
'actions'));
427 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id', $a_set[
'usr_id']);
428 $this->ctrl->setParameter($this->parent_obj,
'member_id', $a_set[
'usr_id']);
430 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
431 $list->addItem($trans,
'', $link,
'sendMailToSelectedUsers');
433 $this->ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id', $a_set[
'usr_id']);
435 $list->addItem($trans,
'', $this->ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember'));
437 $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.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
resetOffset($a_in_determination=false)
Reset offset.
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.
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.
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.
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.
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.
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.