ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Administrate calendar appointments. More...
Public Member Functions | |
__construct (ilDate $seed, ilDate $initialDate, int $a_appointment_id=0) | |
executeCommand () | |
getAppointment () | |
confirmUnregister () | |
book () | |
Confirmation screen for booking of consultation appointment. More... | |
bookconfirmed () | |
Book consultation appointment, was confirmed. More... | |
cancelBooking (bool $send_mail=true) | |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category. More... | |
cancelConfirmed (bool $send_mail=true) | |
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry. More... | |
Protected Member Functions | |
getAppointmentIdFromQuery () | |
getRecurrenceExclusionFromQuery () | |
getRecurrenceDateFromQuery () | |
cancel () | |
readAndPrepareCalendarSelection (string $mode) | |
doUserAutoComplete () | |
Currently not in use, but will be as soon as tag inputs support autocomplete, see ilCalendarAppointmentGUI::initForm. More... | |
add (?Form $form=null) | |
add new appointment More... | |
save () | |
distributeUserNotifications () | |
Send mail to selected users. More... | |
distributeNotifications (int $a_cat_id, int $app_id, bool $a_new_appointment=true) | |
askEdit () | |
Check edit single apppointment / edit all appointments for recurring appointments. More... | |
editSingle () | |
Edit one single appointment ^. More... | |
edit (bool $a_edit_single_app=false, ?Form $form=null) | |
edit appointment More... | |
showInfoScreen () | |
update () | |
askDelete () | |
delete () | |
deleteExclude (bool $a_return=true) | |
initTimeZone () | |
initInitialDate (ilDate $initialDate) | |
initSeed (ilDate $seed) | |
initAppointment (int $a_app_id=0) | |
loadNotificationRecipients (array $recipients) | |
loadRecurrenceSettings (?ilCalendarRecurrence $recurrence) | |
saveRecurrenceSettings () | |
createDefaultCalendar () | |
confirmRegister () | |
Register to an appointment. More... | |
register () | |
unregister () | |
Unregister calendar, was confirmed. More... | |
initFormConfirmBooking () | |
deleteBooking () | |
deleteConfirmed () | |
calendarEntryToCategory (ilCalendarEntry $entry) | |
Get category object of given calendar entry. More... | |
Protected Attributes | |
bool | $requested_rexl |
ilDate | $seed |
ilDateTime | $initialDate |
bool | $default_fulltime = true |
ilCalendarEntry | $app |
ilCalendarRecurrence | $rec |
string | $timezone |
ilGlobalTemplateInterface | $tpl |
ilLanguage | $lng |
ilCtrlInterface | $ctrl |
ilObjUser | $user |
ilTabsGUI | $tabs |
ilSetting | $settings |
ilHelpGUI | $help |
ilErrorHandling | $error |
HTTPServices | $http |
RefineryFactory | $refinery |
RequestInterface | $request |
UIFactory | $ui_factory |
UIRenderer | $ui_renderer |
Private Attributes | |
Form | $form |
ilCalendarUserNotification | $notification |
ilLogger | $logger |
Administrate calendar appointments.
Definition at line 35 of file class.ilCalendarAppointmentGUI.php.
ilCalendarAppointmentGUI::__construct | ( | ilDate | $seed, |
ilDate | $initialDate, | ||
int | $a_appointment_id = 0 |
||
) |
Definition at line 66 of file class.ilCalendarAppointmentGUI.php.
References $DIC, ILIAS\Repository\ctrl(), getRecurrenceExclusionFromQuery(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), initAppointment(), initInitialDate(), initSeed(), initTimeZone(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
protected |
add new appointment
Definition at line 459 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\help().
Referenced by save().
|
protected |
Definition at line 770 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarRecurrences\_getRecurrences(), ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
|
protected |
Check edit single apppointment / edit all appointments for recurring appointments.
Definition at line 583 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarRecurrences\_getRecurrences(), ILIAS\Repository\ctrl(), edit(), getAppointment(), and ILIAS\Repository\lng().
ilCalendarAppointmentGUI::book | ( | ) |
Confirmation screen for booking of consultation appointment.
Definition at line 1184 of file class.ilCalendarAppointmentGUI.php.
References ilObjUser\_lookupFullname(), ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), getAppointmentIdFromQuery(), and initFormConfirmBooking().
ilCalendarAppointmentGUI::bookconfirmed | ( | ) |
Book consultation appointment, was confirmed.
Definition at line 1226 of file class.ilCalendarAppointmentGUI.php.
References $GLOBALS, ilConsultationHourUtils\bookAppointment(), ILIAS\Repository\ctrl(), getAppointmentIdFromQuery(), initFormConfirmBooking(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
|
protected |
Get category object of given calendar entry.
Definition at line 1360 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarEntry\getEntryId(), and ilCalendarCategoryAssignments\getFirstAssignment().
Referenced by cancelBooking(), and cancelConfirmed().
|
protected |
Definition at line 159 of file class.ilCalendarAppointmentGUI.php.
References $form, $id, $res, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilCalendarUserSettings\_getInstanceByUserId(), ilObjUser\_lookupLogin(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), readAndPrepareCalendarSelection(), ILIAS\Repository\refinery(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarCategory\TYPE_OBJ, ilCalendarUserNotification\TYPE_USER, ILIAS\Repository\user(), ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation(), and ILIAS\UI\Implementation\Component\Input\withValue().
ilCalendarAppointmentGUI::cancelBooking | ( | bool | $send_mail = true | ) |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category.
Definition at line 1256 of file class.ilCalendarAppointmentGUI.php.
References ilObjUser\_lookupFullname(), calendarEntryToCategory(), ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), getAppointmentIdFromQuery(), ILIAS\Repository\lng(), ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
Referenced by deleteBooking().
ilCalendarAppointmentGUI::cancelConfirmed | ( | bool | $send_mail = true | ) |
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry.
Definition at line 1305 of file class.ilCalendarAppointmentGUI.php.
References calendarEntryToCategory(), ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getAppointmentIds(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilBookingReservation\setStatus(), ilBookingReservation\STATUS_CANCELLED, ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, and ILIAS\Repository\user().
Referenced by deleteConfirmed().
|
protected |
Register to an appointment.
Definition at line 1037 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), getAppointmentIdFromQuery(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilCalendarAppointmentGUI::confirmUnregister | ( | ) |
Definition at line 1107 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), getAppointmentIdFromQuery(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
|
protected |
Definition at line 1020 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategory\DEFAULT_COLOR, ilCalendarCache\getInstance(), ILIAS\Repository\lng(), ilCalendarCategory\TYPE_USR, and ILIAS\Repository\user().
Referenced by save(), and update().
|
protected |
Definition at line 811 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategoryAssignments\_deleteByAppointmentId(), ILIAS\Repository\ctrl(), ilCalendarEntry\delete(), ilCalendarUserNotification\deleteCalendarEntry(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
|
protected |
Definition at line 1247 of file class.ilCalendarAppointmentGUI.php.
References cancelBooking().
|
protected |
Definition at line 1296 of file class.ilCalendarAppointmentGUI.php.
References cancelConfirmed().
|
protected |
Definition at line 832 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), IL_CAL_UNIX, ILIAS\Repository\int(), and ILIAS\Repository\lng().
|
protected |
Definition at line 542 of file class.ilCalendarAppointmentGUI.php.
References $ref_id, ilObject\_getAllReferences(), ilCalendarCategories\_getInstance(), ilCalendarMailNotification\TYPE_CRS_NEW_NOTIFICATION, ilCalendarMailNotification\TYPE_CRS_NOTIFICATION, ilCalendarMailNotification\TYPE_GRP_NEW_NOTIFICATION, ilCalendarMailNotification\TYPE_GRP_NOTIFICATION, and ilCalendarCategory\TYPE_OBJ.
Referenced by save(), and update().
|
protected |
Send mail to selected users.
Definition at line 519 of file class.ilCalendarAppointmentGUI.php.
References ANONYMOUS_USER_ID, ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), ilCalendarUserNotification\setRecipients(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarUserNotification\TYPE_USER, ilCalendarMailNotification\TYPE_USER, and ilCalendarMailNotification\TYPE_USER_ANONYMOUS.
Referenced by save(), and update().
|
protected |
Currently not in use, but will be as soon as tag inputs support autocomplete, see ilCalendarAppointmentGUI::initForm.
Definition at line 404 of file class.ilCalendarAppointmentGUI.php.
References ANONYMOUS_USER_ID, exit, ILIAS\FileDelivery\http(), ilUserAutoComplete\MAX_ENTRIES, ilUserAutoComplete\PRIVACY_MODE_RESPECT_USER_SETTING, ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
protected |
edit appointment
Definition at line 618 of file class.ilCalendarAppointmentGUI.php.
References $duration, ilDateTime\_equals(), ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), ILIAS\Repository\ctrl(), getAppointment(), getRecurrenceDateFromQuery(), ILIAS\Repository\help(), IL_CAL_DAY, IL_CAL_UNIX, ILIAS\Repository\lng(), showInfoScreen(), and ILIAS\Repository\user().
Referenced by askEdit(), editSingle(), and update().
|
protected |
Edit one single appointment ^.
Definition at line 608 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), and edit().
ilCalendarAppointmentGUI::executeCommand | ( | ) |
Definition at line 133 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
ilCalendarAppointmentGUI::getAppointment | ( | ) |
|
protected |
Definition at line 93 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by book(), bookconfirmed(), cancelBooking(), confirmRegister(), and confirmUnregister().
|
protected |
Definition at line 122 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit(), and update().
|
protected |
Definition at line 104 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by __construct().
|
protected |
Definition at line 894 of file class.ilCalendarAppointmentGUI.php.
References $data, $initialDate, ilCalendarRecurrences\_getFirstRecurrence(), ilCalendarSettings\_getInstance(), ILIAS\Repository\form(), IL_CAL_HOUR, IL_CAL_UNIX, ilDateTime\increment(), loadNotificationRecipients(), loadRecurrenceSettings(), ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), and null.
Referenced by __construct().
|
protected |
Definition at line 1203 of file class.ilCalendarAppointmentGUI.php.
References $form, $message, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by book(), and bookconfirmed().
|
protected |
Definition at line 860 of file class.ilCalendarAppointmentGUI.php.
References $initialDate, $timezone, ilDate\get(), ILIAS\FileDelivery\http(), IL_CAL_DATE, IL_CAL_DATETIME, ILIAS\Repository\int(), and ILIAS\Repository\refinery().
Referenced by __construct().
|
protected |
Definition at line 888 of file class.ilCalendarAppointmentGUI.php.
References $seed.
Referenced by __construct().
|
protected |
Definition at line 855 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\user().
Referenced by __construct().
|
protected |
string[] | $recipients |
Definition at line 961 of file class.ilCalendarAppointmentGUI.php.
References ilObjUser\_loginExists(), ILIAS\Repository\int(), ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.
Referenced by initAppointment().
|
protected |
Definition at line 990 of file class.ilCalendarAppointmentGUI.php.
Referenced by initAppointment().
|
protected |
Definition at line 350 of file class.ilCalendarAppointmentGUI.php.
References $ref_id, ilCalendarCategories\_getInstance(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObject\_lookupObjId(), ilCalendarCategoryAssignments\getFirstAssignment(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
Referenced by cancel().
|
protected |
Definition at line 1073 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
protected |
Definition at line 471 of file class.ilCalendarAppointmentGUI.php.
References $data, ilCalendarSettings\_getInstance(), add(), ilCalendarCategoryAssignments\addAssignment(), createDefaultCalendar(), ILIAS\Repository\ctrl(), distributeNotifications(), distributeUserNotifications(), ILIAS\Repository\form(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), and saveRecurrenceSettings().
|
protected |
Definition at line 999 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarRecurrence\FREQ_NONE.
Referenced by save(), and update().
|
protected |
Definition at line 669 of file class.ilCalendarAppointmentGUI.php.
References $info, ilObject\_getAllReferences(), ilCalendarCategories\_getInstance(), ilLink\_getStaticLink(), ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), ILIAS\Repository\lng(), and ilCalendarCategory\TYPE_OBJ.
Referenced by edit().
|
protected |
Unregister calendar, was confirmed.
Definition at line 1147 of file class.ilCalendarAppointmentGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
protected |
Definition at line 713 of file class.ilCalendarAppointmentGUI.php.
References $data, $notification, $requested_rexl, ilCalendarSettings\_getInstance(), createDefaultCalendar(), ILIAS\Repository\ctrl(), ilCalendarCategoryAssignments\deleteAssignments(), distributeNotifications(), distributeUserNotifications(), edit(), ILIAS\Repository\form(), ilDatePresentation\formatDate(), getAppointment(), getRecurrenceDateFromQuery(), IL_CAL_UNIX, ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\UI\examples\Symbol\Glyph\Notification\notification(), and saveRecurrenceSettings().
|
protected |
Definition at line 44 of file class.ilCalendarAppointmentGUI.php.
Referenced by getAppointment().
|
protected |
Definition at line 50 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 43 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 55 of file class.ilCalendarAppointmentGUI.php.
|
private |
Definition at line 37 of file class.ilCalendarAppointmentGUI.php.
Referenced by cancel(), and initFormConfirmBooking().
|
protected |
Definition at line 54 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 57 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 42 of file class.ilCalendarAppointmentGUI.php.
Referenced by initAppointment(), and initInitialDate().
|
protected |
Definition at line 49 of file class.ilCalendarAppointmentGUI.php.
|
private |
Definition at line 56 of file class.ilCalendarAppointmentGUI.php.
|
private |
Definition at line 38 of file class.ilCalendarAppointmentGUI.php.
Referenced by update().
|
protected |
Definition at line 45 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 58 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 59 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 39 of file class.ilCalendarAppointmentGUI.php.
Referenced by update().
|
protected |
Definition at line 41 of file class.ilCalendarAppointmentGUI.php.
Referenced by initSeed().
|
protected |
Definition at line 53 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 52 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 46 of file class.ilCalendarAppointmentGUI.php.
Referenced by initInitialDate().
|
protected |
Definition at line 48 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 60 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 61 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 51 of file class.ilCalendarAppointmentGUI.php.