33 include_once(
'./Services/Calendar/classes/class.ilTimeZone.php');
34 include_once(
'./Services/Calendar/classes/class.ilDateTime.php');
62 $lng->loadLanguageModule(
'dateplaner');
84 $ilTabs->clearTargets();
85 $ilTabs->setBackTarget(
86 $this->lng->txt(
'cal_back_to_cal'),
87 $this->ctrl->getLinkTarget($this,
'cancel')
90 $next_class = $this->ctrl->getNextClass($this);
95 $cmd = $this->ctrl->getCmd(
"add");
111 $this->ctrl->returnToParent($this);
121 protected function initForm($a_mode, $a_as_milestone =
false)
125 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
126 include_once(
'./Services/Calendar/classes/class.ilCalendarRecurrenceGUI.php');
127 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
128 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
129 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
133 include_once(
'./Services/YUI/classes/class.ilYuiUtil.php');
139 $this->ctrl->saveParameter($this,array(
'seed',
'idate'));
140 $this->form->setFormAction($this->ctrl->getFormAction($this));
143 $this->form->setTitle($this->lng->txt(
'cal_new_ms'));
144 $this->form->addCommandButton(
'saveMilestone',$this->lng->txt(
'cal_add_milestone'));
145 $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
149 $this->form->setTitle($this->lng->txt(
'cal_new_app'));
150 $this->form->addCommandButton(
'save',$this->lng->txt(
'cal_add_appointment'));
151 $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
158 $this->form->setTitle($this->lng->txt(
'cal_edit_milestone'));
162 $this->form->setTitle($this->lng->txt(
'cal_edit_appointment'));
164 $this->ctrl->saveParameter($this,array(
'seed',
'app_id',
'idate'));
165 $this->form->setFormAction($this->ctrl->getFormAction($this));
169 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
173 && ($type ==
"grp" || $type ==
"crs"))
176 $this->form->addCommandButton(
'editResponsibleUsers',$this->lng->txt(
'cal_change_responsible_users'));
178 $this->form->addCommandButton(
'update',$this->lng->txt(
'save'));
180 $this->form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
185 $title->setValue($this->app->getTitle());
186 $title->setRequired(
true);
187 $title->setMaxLength(128);
189 $this->form->addItem(
$title);
192 $calendar =
new ilSelectInputGUI($this->lng->txt(
'cal_category_selection'),
'calendar');
196 $selected_calendar = (int) $_POST[
'calendar'];
198 else if(
$_GET[
'category_id'])
200 $calendar->setValue((
int)
$_GET[
'category_id']);
201 $selected_calendar = (int) $_GET[
'category_id'];
203 elseif($a_mode ==
'edit')
207 $calendar->setValue($cat);
208 $selected_calendar = $cat;
210 elseif(isset(
$_GET[
'ref_id']))
212 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
217 $calendar->setRequired(
true);
219 $calendar->setOptions($cats->prepareCategoriesOfUserForSelection());
221 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
224 $notification_cals = $cats->getNotificationCalendars();
225 $notification_cals = count($notification_cals) ? implode(
',',$notification_cals) :
'';
226 $calendar->addCustomAttribute(
"onchange=\"ilToggleNotification(new Array(".$notification_cals.
"));\"");
228 $this->form->addItem($calendar);
230 if (!$a_as_milestone)
232 include_once
'./Services/Form/classes/class.ilDateDurationInputGUI.php';
233 $tpl->addJavaScript(
'./Services/Form/js/date_duration.js');
236 $dur->setEndText($this->lng->txt(
'cal_end'));
237 $dur->enableToggleFullTime(
238 $this->lng->txt(
'cal_fullday_title'),
239 $this->app->isFullday() ?
true : false
241 $dur->setMinuteStepSize(5);
242 $dur->setShowDate(
true);
243 $dur->setShowTime(
true);
244 $dur->setStart($this->app->getStart());
245 $dur->setEnd($this->app->getEnd());
246 $this->form->addItem($dur);
249 include_once(
'./Services/Calendar/classes/Form/class.ilRecurrenceInputGUI.php');
251 $rec->setRecurrence($this->rec);
252 $this->form->addItem(
$rec);
255 $where =
new ilTextInputGUI($this->lng->txt(
'cal_where'),
'location');
256 $where->
setValue($this->app->getLocation());
257 $where->setMaxLength(128);
259 $this->form->addItem($where);
264 $deadline->
setDate($this->app->getStart());
265 $deadline->setShowTime(
false);
266 $deadline->setMinuteStepSize(5);
267 $this->form->addItem($deadline);
270 $completion_vals = array();
271 for($i = 0; $i <= 100; $i+=5)
273 $completion_vals[$i] = $i.
" %";
278 $compl->setValue($this->app->getCompletion());
279 $this->form->addItem($compl);
283 $desc->
setValue($this->app->getDescription());
285 $this->form->addItem($desc);
287 if ($a_as_milestone && $a_mode ==
"edit" && $resp_info)
290 $users = $this->app->readResponsibleUsers();
294 foreach($users as $r)
296 $value.= $delim.$r[
"lastname"].
", ".$r[
"firstname"].
" [".$r[
"login"].
"]";
299 if (count($users) > 0)
305 $resp->setValue(
"-");
308 $this->form->addItem($resp);
315 $notu->
setInfo($this->lng->txt(
'cal_user_notification_info'));
317 $notu->setMaxLength(64);
320 foreach($this->notification->getRecipients() as $rcp)
322 switch ($rcp[
'type'])
329 $values[] = $rcp[
'email'];
334 $notu->setValues($values);
336 $notu->setValues(array(
''));
337 $this->form->addItem($notu);
341 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
354 $tpl->addJavaScript(
'./Services/Calendar/js/toggle_notification.js');
356 $not->
setInfo($this->lng->txt(
'cal_notification_info'));
358 $not->setChecked($this->app->isNotificationEnabled());
359 $not->setDisabled($disabled);
360 $this->form->addItem($not);
376 $tpl->setContent($this->form->getHTML());
390 $tpl->setContent($this->form->getHTML());
408 protected function save($a_as_milestone =
false)
412 $this->
load($a_as_milestone);
414 if($this->app->validate() and $this->notification->validate())
416 if(!(
int)
$_POST[
'calendar'])
422 $cat_id = (int)
$_POST[
'calendar'];
426 $this->notification->setEntryId($this->app->getEntryId());
427 $this->notification->save();
428 $this->rec->setEntryId($this->app->getEntryId());
431 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
436 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
446 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
451 && ($type ==
"grp" || $type ==
"crs"))
456 elseif($a_as_milestone)
459 $this->ctrl->returnToParent($this);
464 $this->ctrl->returnToParent($this);
489 include_once
'./Services/Calendar/classes/class.ilCalendarMailNotification.php';
491 $notification->setAppointmentId($this->app->getEntryId());
493 foreach($this->notification->getRecipients() as $rcp)
498 $notification->setSender(ANONYMOUS_USER_ID);
499 $notification->setRecipients(array($rcp[
'usr_id']));
504 $notification->setSender(ANONYMOUS_USER_ID);
505 $notification->setRecipients(array($rcp[
'email']));
509 $notification->send();
520 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
523 include_once
'./Services/Calendar/classes/class.ilCalendarMailNotification.php';
525 $notification->setAppointmentId($app_id);
527 switch($cat_info[
'type'])
531 switch($cat_info[
'obj_type'])
536 $notification->setRefId(
$ref_id);
537 $notification->setType(
546 $notification->setRefId(
$ref_id);
547 $notification->setType(
556 $notification->send();
564 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
566 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
580 include_once(
"./Services/Calendar/classes/class.ilMilestoneResponsiblesTableGUI.php");
582 $this->app->getEntryId());
583 $tpl->setContent($table_gui->getHTML());
593 $this->app->writeResponsibleUsers(
$_POST[
"user_id"]);
594 $ilCtrl->returnToParent($this);
608 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
609 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
610 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
615 if(!$cats->isVisible($cat_id))
617 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
620 if(!$cats->isEditable($cat_id) or $this->app->isAutoGenerated())
626 $this->
initForm(
'edit', $this->app->isMilestone());
627 $tpl->setContent($this->form->getHTML());
640 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
642 $info->setFormAction($this->ctrl->getFormAction($this));
644 if ($this->app->isMilestone())
646 $info->addSection($this->lng->txt(
'cal_ms_details'));
650 $info->addSection($this->lng->txt(
'cal_details'));
654 $info->addProperty($this->lng->txt(
'appointment'),
656 $this->app->getStart(),
657 $this->app->getEnd()));
658 $info->addProperty($this->lng->txt(
'title'),$this->app->getPresentationTitle());
661 if(strlen($desc = $this->app->getDescription()))
663 $info->addProperty($this->lng->txt(
'description'),$desc);
667 if(strlen($loc = $this->app->getLocation()))
669 $info->addProperty($this->lng->txt(
'cal_where'),$loc);
673 if ($this->app->isMilestone() && $this->app->getCompletion() > 0)
675 $info->addProperty($this->lng->txt(
'cal_task_completion'),
676 $this->app->getCompletion().
" %");
679 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
684 && ($type ==
"grp" || $type ==
"crs"))
687 $users = $this->app->readResponsibleUsers();
689 foreach($users as $r)
691 $value.= $delim.$r[
"lastname"].
", ".$r[
"firstname"].
" [".$r[
"login"].
"]";
694 if (count($users) > 0)
696 $info->addProperty($this->lng->txt(
'cal_responsible'),
705 $info->addSection($this->lng->txt(
'additional_info'));
710 include_once(
'./Services/Link/classes/class.ilLink.php');
712 $info->addProperty($this->lng->txt(
'perma_link'),
'<a class="small" href="'.$href.
'" target="_top">'.$href.
'</a>');
715 $tpl->setContent($info->getHTML());
728 $this->
load($this->app->isMilestone());
730 if($this->app->validate() and $this->notification->validate())
732 if(!(
int)
$_POST[
'calendar'])
738 $cat_id = (int)
$_POST[
'calendar'];
741 $this->app->update();
742 $this->notification->save();
745 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
748 $ass->addAssignment($cat_id);
751 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
762 $this->ctrl->returnToParent($this);
783 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
785 $this->ctrl->saveParameter($this,array(
'seed',
'app_id',
'dt',
'idate'));
788 $confirm->setFormAction($this->ctrl->getFormAction($this));
789 $confirm->setHeaderText($this->lng->txt(
'cal_delete_app_sure'));
790 $confirm->setCancel($this->lng->txt(
'cancel'),
'cancel');
791 $confirm->addItem(
'appointments[]',$this->app->getEntryId(),$this->app->getTitle());
793 include_once(
'./Services/Calendar/classes/class.ilCalendarRecurrences.php');
795 && !$this->app->isMilestone())
797 $confirm->addButton($this->lng->txt(
'cal_delete_single'),
'deleteexclude');
798 $confirm->setConfirm($this->lng->txt(
'cal_delete_recurrences'),
'delete');
802 $confirm->setConfirm($this->lng->txt(
'delete'),
'delete');
805 $tpl->setContent($confirm->getHTML());
816 protected function delete()
818 foreach(
$_POST[
'appointments'] as $app_id)
823 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
826 include_once
'./Services/Calendar/classes/class.ilCalendarUserNotification.php';
830 $this->ctrl->returnToParent($this);
842 include_once(
'./Services/Calendar/classes/class.ilCalendarRecurrenceExclusion.php');
844 $excl->setEntryId(
$_GET[
'app_id']);
849 $this->ctrl->returnToParent($this);
863 $this->timezone = $ilUser->getTimeZone();
872 if(!isset(
$_GET[
'hour']))
875 $this->default_fulltime =
true;
879 if((
int)
$_GET[
'hour'] < 10)
881 $time =
'0'.(int)
$_GET[
'hour'].
':00:00';
885 $time = (int)
$_GET[
'hour'].
':00:00';
888 $this->default_fulltime =
false;
901 $this->seed = clone
$seed;
902 $this->default_fulltime =
true;
914 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
915 include_once(
'./Services/Calendar/classes/class.ilCalendarRecurrences.php');
918 include_once
'./Services/Calendar/classes/class.ilCalendarUserNotification.php';
924 $this->app->setStart($start);
927 if($this->default_fulltime)
929 #$seed_end->increment(IL_CAL_DAY,1);
935 $this->app->setEnd($seed_end);
936 $this->app->setFullday($this->default_fulltime);
954 protected function load($a_as_milestone =
false)
958 $this->app->setMilestone(
true);
966 $this->app->enableNotification((
int)
$_POST[
'not']);
969 $this->app->setFullday(
true);
973 $this->app->setFullday(isset($_POST[
'event'][
'fulltime']) ?
true :
false);
976 if($this->app->isFullday())
978 $start =
new ilDate($_POST[
'event'][
'start'][
'date'][
'y'].
'-'.$_POST[
'event'][
'start'][
'date'][
'm'].
'-'.$_POST[
'event'][
'start'][
'date'][
'd'],
980 $this->app->setStart($start);
982 $end =
new ilDate($_POST[
'event'][
'end'][
'date'][
'y'].
'-'.$_POST[
'event'][
'end'][
'date'][
'm'].
'-'.$_POST[
'event'][
'end'][
'date'][
'd'],
988 $this->app->setEnd($start);
992 $this->app->setEnd($end);
997 $start_dt[
'year'] = (int) $_POST[
'event'][
'start'][
'date'][
'y'];
998 $start_dt[
'mon'] = (int) $_POST[
'event'][
'start'][
'date'][
'm'];
999 $start_dt[
'mday'] = (int) $_POST[
'event'][
'start'][
'date'][
'd'];
1000 $start_dt[
'hours'] = (int) $_POST[
'event'][
'start'][
'time'][
'h'];
1001 $start_dt[
'minutes'] = (int) $_POST[
'event'][
'start'][
'time'][
'm'];
1003 $this->app->setStart($start);
1005 $end_dt[
'year'] = (int) $_POST[
'event'][
'end'][
'date'][
'y'];
1006 $end_dt[
'mon'] = (int) $_POST[
'event'][
'end'][
'date'][
'm'];
1007 $end_dt[
'mday'] = (int) $_POST[
'event'][
'end'][
'date'][
'd'];
1008 $end_dt[
'hours'] = (int) $_POST[
'event'][
'end'][
'time'][
'h'];
1009 $end_dt[
'minutes'] = (int) $_POST[
'event'][
'end'][
'time'][
'm'];
1011 $this->app->setEnd($end);
1019 $this->notification->setRecipients(array());
1021 foreach((array)
$_POST[
'notu'] as $rcp)
1026 if(strlen($rcp) == 0)
1033 $this->notification->addRecipient(
1040 $this->notification->addRecipient(
1057 $this->rec->reset();
1059 switch(
$_POST[
'frequence'])
1062 $this->rec->setFrequenceType(
$_POST[
'frequence']);
1063 $this->rec->setInterval((
int)
$_POST[
'count_DAILY']);
1067 $this->rec->setFrequenceType($_POST[
'frequence']);
1068 $this->rec->setInterval((
int) $_POST[
'count_WEEKLY']);
1069 if(is_array($_POST[
'byday_WEEKLY']))
1076 $this->rec->setFrequenceType($_POST[
'frequence']);
1077 $this->rec->setInterval((
int) $_POST[
'count_MONTHLY']);
1078 switch((
int) $_POST[
'subtype_MONTHLY'])
1085 switch((
int) $_POST[
'monthly_byday_day'])
1089 $this->rec->setBYSETPOS((
int) $_POST[
'monthly_byday_num']);
1090 $this->rec->setBYDAY(
'MO,TU,WE,TH,FR');
1095 $this->rec->setBYMONTHDAY((
int) $_POST[
'monthly_byday_num']);
1099 $this->rec->setBYDAY((
int) $_POST[
'monthly_byday_num'].$_POST[
'monthly_byday_day']);
1105 $this->rec->setBYMONTHDAY((
int) $_POST[
'monthly_bymonthday']);
1111 $this->rec->setFrequenceType($_POST[
'frequence']);
1112 $this->rec->setInterval((
int) $_POST[
'count_YEARLY']);
1113 switch((
int) $_POST[
'subtype_YEARLY'])
1120 $this->rec->setBYMONTH((
int) $_POST[
'yearly_bymonth_byday']);
1121 $this->rec->setBYDAY((
int) $_POST[
'yearly_byday_num'].$_POST[
'yearly_byday']);
1125 $this->rec->setBYMONTH((
int) $_POST[
'yearly_bymonth_by_monthday']);
1126 $this->rec->setBYMONTHDAY((
int) $_POST[
'yearly_bymonthday']);
1133 switch((
int)
$_POST[
'until_type'])
1136 $this->rec->setFrequenceUntilDate(null);
1141 $this->rec->setFrequenceUntilDate(null);
1142 $this->rec->setFrequenceUntilCount((
int) $_POST[
'count']);
1146 $end_dt[
'year'] = (int) $_POST[
'until_end'][
'date'][
'y'];
1147 $end_dt[
'mon'] = (int) $_POST[
'until_end'][
'date'][
'm'];
1148 $end_dt[
'mday'] = (int) $_POST[
'until_end'][
'date'][
'd'];
1150 $this->rec->setFrequenceUntilCount(0);
1166 switch(
$_POST[
'frequence'])
1170 if($this->rec->getRecurrenceId())
1172 $this->rec->delete();
1177 if($this->rec->getRecurrenceId())
1179 $this->rec->update();
1202 $cat->setTitle($this->lng->txt(
'cal_default_calendar'));
1203 $cat->setObjId($ilUser->getId());
1222 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1225 $this->ctrl->setParameter($this,
'dstart',(
int)
$_REQUEST[
'dstart']);
1226 $this->ctrl->setParameter($this,
'dend',(
int) $_REQUEST[
'dend']);
1229 $conf->setHeaderText($this->lng->txt(
'cal_confirm_reg_info'));
1230 $conf->setConfirm($this->lng->txt(
'cal_reg_register'),
'register');
1231 $conf->setCancel($this->lng->txt(
'cancel'),
'cancel');
1232 $conf->addItem(
'app_id', $entry->getEntryId(), $entry->getTitle().
' ('.$start.
')');
1234 $tpl->setContent($conf->getHTML());
1241 protected function register()
1245 include_once
'./Services/Calendar/classes/class.ilCalendarRegistration.php';
1254 $this->ctrl->returnToParent($this);
1272 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1275 $this->ctrl->setParameter($this,
'dstart',(
int)
$_REQUEST[
'dstart']);
1276 $this->ctrl->setParameter($this,
'dend',(
int) $_REQUEST[
'dend']);
1279 $conf->setHeaderText($this->lng->txt(
'cal_confirm_unreg_info'));
1280 $conf->setConfirm($this->lng->txt(
'cal_reg_unregister'),
'unregister');
1281 $conf->setCancel($this->lng->txt(
'cancel'),
'cancel');
1282 $conf->addItem(
'app_id', $entry->getEntryId(), $entry->getTitle().
' ('.$start.
')');
1284 $tpl->setContent($conf->getHTML());
1295 include_once
'./Services/Calendar/classes/class.ilCalendarRegistration.php';
1304 $this->ctrl->returnToParent($this);
1314 $entry = (int)
$_GET[
'app_id'];
1315 $user = (int)
$_GET[
'bkid'];
1317 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
1318 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
1324 switch($user_settings->getTimeFormat())
1339 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1342 $conf->setHeaderText($this->lng->txt(
'cal_confirm_booking_info'));
1343 $conf->setConfirm($this->lng->txt(
'cal_confirm_booking'),
'bookconfirmed');
1344 $conf->setCancel($this->lng->txt(
'cancel'),
'cancel');
1345 $conf->addItem(
'app_id', $entry->getEntryId(),
$title);
1347 $tpl->setContent($conf->getHTML());
1357 $entry = (int)
$_POST[
'app_id'];
1358 $user = (int)
$_GET[
'bkid'];
1360 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
1361 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
1364 $booking->
book($entry->getEntryId());
1367 include_once
'./Services/Calendar/classes/class.ilCalendarCategory.php';
1368 include_once
'./Services/Calendar/classes/class.ilCalendarUtil.php';
1369 include_once
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
1370 $user_entry = clone $entry;
1371 $user_entry->save();
1377 $this->ctrl->returnToParent($this);
1388 $entry = (int)
$_GET[
'app_id'];
1390 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
1396 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
1398 if(!$booking->hasBooked($entry->getEntryId()))
1400 $this->ctrl->returnToParent($this);
1408 $entry_title =
' '.$entry->getTitle();
1412 $this->ctrl->returnToParent($this);
1418 switch($user_settings->getTimeFormat())
1431 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1434 $conf->setHeaderText($this->lng->txt(
'cal_cancel_booking_info'));
1435 $conf->setConfirm($this->lng->txt(
'cal_cancel_booking'),
'cancelconfirmed');
1436 $conf->setCancel($this->lng->txt(
'cancel'),
'cancel');
1437 $conf->addItem(
'app_id', $entry->getEntryId(),
$title.
' - '.$entry_title);
1439 $tpl->setContent($conf->getHTML());
1450 $entry = (int)
$_POST[
'app_id'];
1451 $user = (int)
$_GET[
'bkid'];
1453 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
1460 include_once
'Services/Calendar/classes/ConsultationHours/class.ilConsultationHourAppointments.php';
1465 $ref_entry->delete();
1468 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
1476 include_once
'Modules/BookingManager/classes/class.ilBookingReservation.php';
1485 $this->ctrl->returnToParent($this);
1495 include_once
'Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
1496 include_once
'Services/Calendar/classes/class.ilCalendarCategory.php';
1508 if(!isset(
$_GET[
'autoCompleteField']))
1510 $a_fields = array(
'login',
'firstname',
'lastname',
'email');
1514 $a_fields = array((
string)
$_GET[
'autoCompleteField']);
1517 $GLOBALS[
'ilLog']->write(print_r($a_fields,
true));
1518 include_once
'./Services/User/classes/class.ilUserAutoComplete.php';
1520 $auto->setSearchFields($a_fields);
1521 $auto->enableFieldSearchableCheck(
true);
1522 echo $auto->getList(
$_REQUEST[
'query']);