ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Administrate calendar appointments. More...
Public Member Functions | |
__construct (ilDate $seed, ilDate $initialDate, $a_appointment_id=0) | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
getAppointment () | |
Get current appointment. More... | |
editResponsibleUsers () | |
Edit responsible users. More... | |
showResponsibleUsersList ($a_grp_id) | |
Show responsible uses of a milestone (default set is participants of group) More... | |
saveMilestoneResponsibleUsers () | |
Save milestone responsibilites. More... | |
confirmUnregister () | |
Confirmation screen to unregister calendar. More... | |
book () | |
Confirmation screen for booking of consultation appointment. More... | |
bookconfirmed () | |
Book consultation appointment, was confirmed. More... | |
cancelBooking () | |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category. More... | |
cancelConfirmed () | |
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry. More... | |
Protected Member Functions | |
cancel () | |
cancel editing More... | |
initForm ($a_mode, $a_as_milestone=false, $a_edit_single_app=false) | |
init form More... | |
add (ilPropertyFormGUI $form=null) | |
add new appointment More... | |
addMilestone () | |
add milestone More... | |
saveMilestone () | |
save milestone More... | |
save ($a_as_milestone=false) | |
save appointment More... | |
distributeUserNotifications () | |
Send mail to selected users ilObjUser $ilUser. More... | |
distributeNotifications ($a_cat_id, $app_id, $a_new_appointment=true) | |
Distribute mail notifications. More... | |
askEdit () | |
Check edit single apppointment / edit all appointments for recurring appointments. More... | |
editSingle () | |
Edit one single appointment ^. More... | |
edit ($a_edit_single_app=false, ilPropertyFormGUI $form=null) | |
edit appointment More... | |
showInfoScreen () | |
show info screen More... | |
update () | |
update More... | |
askDelete () | |
ask delete More... | |
delete () | |
delete More... | |
deleteExclude ($a_return=true) | |
delete single item of recurrence list More... | |
initTimeZone () | |
init timezone More... | |
initInitialDate (ilDate $initialDate) | |
init initial date More... | |
initSeed (ilDate $seed) | |
init seed More... | |
initAppointment ($a_app_id=0) | |
init appointment More... | |
load ($a_mode, $a_as_milestone=false) | |
load post More... | |
loadNotificationRecipients () | |
loadRecurrenceSettings ($a_as_milestone=false) | |
load recurrence settings More... | |
saveRecurrenceSettings () | |
save recurrence settings More... | |
createDefaultCalendar () | |
Create a default calendar. More... | |
confirmRegister () | |
Register to an appointment. More... | |
register () | |
Register. More... | |
unregister () | |
Unregister calendar, was confirmed. More... | |
initFormConfirmBooking () | |
calendarEntryToCategory (ilCalendarEntry $entry) | |
Get category object of given calendar entry. More... | |
doUserAutoComplete () | |
Do auto completion. More... | |
Protected Attributes | |
$seed = null | |
$initialDate = null | |
$default_fulltime = true | |
$app = null | |
$rec = null | |
$timezone = null | |
$tpl | |
$lng | |
$ctrl | |
Private Attributes | |
$logger = null | |
Administrate calendar appointments.
Definition at line 12 of file class.ilCalendarAppointmentGUI.php.
Constructor.
public
ilDate | seed |
Definition at line 38 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $GLOBALS, $ilCtrl, $lng, initAppointment(), initInitialDate(), initSeed(), and initTimeZone().
|
protected |
add new appointment
\ilPropertyFormGUI | $form | protected |
Definition at line 343 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $form, $tpl, and initForm().
Referenced by save().
|
protected |
add milestone
protected
Definition at line 366 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $tpl, and initForm().
Referenced by save().
|
protected |
ask delete
protected
Definition at line 848 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $DIC, $tpl, and ilCalendarRecurrences\_getRecurrences().
|
protected |
Check edit single apppointment / edit all appointments for recurring appointments.
Definition at line 585 of file class.ilCalendarAppointmentGUI.php.
References $GLOBALS, $rec, ilCalendarRecurrences\_getRecurrences(), edit(), and getAppointment().
ilCalendarAppointmentGUI::book | ( | ) |
Confirmation screen for booking of consultation appointment.
Definition at line 1344 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $DIC, $form, $ilUser, $tpl, $user, ilObjUser\_lookupFullname(), ilDatePresentation\formatPeriod(), and initFormConfirmBooking().
ilCalendarAppointmentGUI::bookconfirmed | ( | ) |
Book consultation appointment, was confirmed.
Definition at line 1396 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $form, $GLOBALS, $ilUser, $user, ilConsultationHourUtils\bookAppointment(), initFormConfirmBooking(), ilUtil\sendFailure(), and ilBookingEntry\writeBookingMessage().
|
protected |
Get category object of given calendar entry.
ilCalendarEntry | $entry |
Definition at line 1532 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarEntry\getEntryId(), and ilCalendarCategoryAssignments\getFirstAssignment().
Referenced by cancelBooking(), and cancelConfirmed().
|
protected |
cancel editing
protected
Definition at line 108 of file class.ilCalendarAppointmentGUI.php.
ilCalendarAppointmentGUI::cancelBooking | ( | ) |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category.
Definition at line 1433 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $DIC, $ilUser, $title, $tpl, ilObjUser\_lookupFullname(), calendarEntryToCategory(), ilDatePresentation\formatPeriod(), ilConfirmationGUI\setFormAction(), ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
ilCalendarAppointmentGUI::cancelConfirmed | ( | ) |
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry.
Definition at line 1479 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $DIC, $ilUser, $user, calendarEntryToCategory(), ilBookingEntry\cancelBooking(), ilConsultationHourAppointments\getAppointmentIds(), ilBookingReservation\setStatus(), ilBookingReservation\STATUS_CANCELLED, ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
|
protected |
Register to an appointment.
Definition at line 1237 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $DIC, $start, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
ilCalendarAppointmentGUI::confirmUnregister | ( | ) |
Confirmation screen to unregister calendar.
Definition at line 1290 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $DIC, $start, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
|
protected |
Create a default calendar.
protected
Definition at line 1213 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $ilUser, $lng, ilCalendarCategory\DEFAULT_COLOR, ilCalendarCache\getInstance(), and ilCalendarCategory\TYPE_USR.
Referenced by save(), and update().
|
protected |
delete
protected
Definition at line 883 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $app, ilCalendarCategoryAssignments\_deleteByAppointmentId(), and ilCalendarUserNotification\deleteCalendarEntry().
|
protected |
delete single item of recurrence list
protected
Definition at line 906 of file class.ilCalendarAppointmentGUI.php.
References IL_CAL_UNIX.
Referenced by update().
|
protected |
Distribute mail notifications.
Definition at line 494 of file class.ilCalendarAppointmentGUI.php.
References 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 ilObjUser $ilUser.
Definition at line 461 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $ilUser, notification(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarUserNotification\TYPE_USER, ilCalendarMailNotification\TYPE_USER, and ilCalendarMailNotification\TYPE_USER_ANONYMOUS.
Referenced by save(), and update().
|
protected |
Do auto completion.
Definition at line 1545 of file class.ilCalendarAppointmentGUI.php.
References $_GET, exit, and ilUserAutoComplete\MAX_ENTRIES.
|
protected |
edit appointment
protected
bool | singel appointment |
Definition at line 626 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $form, $GLOBALS, $ilErr, $ilUser, $tpl, ilDateTime\_equals(), ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), getAppointment(), IL_CAL_DAY, IL_CAL_UNIX, initForm(), and showInfoScreen().
Referenced by askEdit(), editSingle(), and update().
ilCalendarAppointmentGUI::editResponsibleUsers | ( | ) |
Edit responsible users.
Definition at line 538 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), and showResponsibleUsersList().
|
protected |
Edit one single appointment ^.
Definition at line 611 of file class.ilCalendarAppointmentGUI.php.
References $GLOBALS, and edit().
ilCalendarAppointmentGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 64 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $ilSetting, $ilUser, and $tpl.
ilCalendarAppointmentGUI::getAppointment | ( | ) |
Get current appointment.
Definition at line 96 of file class.ilCalendarAppointmentGUI.php.
References $app.
Referenced by askEdit(), edit(), and update().
|
protected |
init appointment
protected
int | appointment id |
Definition at line 976 of file class.ilCalendarAppointmentGUI.php.
References $initialDate, $start, ilCalendarRecurrences\_getFirstRecurrence(), IL_CAL_HOUR, and notification().
Referenced by __construct().
|
protected |
init form
protected
string | mode ('edit' | 'create') |
Definition at line 120 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $calendar, $DIC, $i, $ilUser, $r, $rec, $title, $tpl, $type, $users, $values, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObjUser\_lookupLogin(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilCalendarCategoryAssignments\getFirstAssignment(), ilYuiUtil\initDomEvent(), notification(), ilDateTimeInputGUI\setDate(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilTextAreaInputGUI\setValue(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarCategory\TYPE_OBJ, and ilCalendarUserNotification\TYPE_USER.
Referenced by add(), addMilestone(), edit(), and load().
|
protected |
Definition at line 1372 of file class.ilCalendarAppointmentGUI.php.
References $form, $message, and $title.
Referenced by book(), and bookconfirmed().
|
protected |
init initial date
ilDate | $initialDate |
Definition at line 940 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $initialDate, $time, $timezone, ilDate\get(), IL_CAL_DATE, and IL_CAL_DATETIME.
Referenced by __construct().
|
protected |
init seed
protected
Definition at line 963 of file class.ilCalendarAppointmentGUI.php.
References $seed.
Referenced by __construct().
|
protected |
init timezone
protected
Definition at line 927 of file class.ilCalendarAppointmentGUI.php.
Referenced by __construct().
|
protected |
load post
protected
Definition at line 1011 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $end, $start, initForm(), loadNotificationRecipients(), loadRecurrenceSettings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
|
protected |
Definition at line 1051 of file class.ilCalendarAppointmentGUI.php.
References $_POST, ilObjUser\_loginExists(), notification(), ilUtil\stripSlashes(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.
Referenced by load().
|
protected |
load recurrence settings
protected
Definition at line 1084 of file class.ilCalendarAppointmentGUI.php.
References $_POST, IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, IL_CAL_FREQ_YEARLY, and ilUtil\stripSlashes().
Referenced by load().
|
protected |
Register.
Definition at line 1269 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $DIC, $ilUser, and IL_CAL_UNIX.
|
protected |
save appointment
protected
Definition at line 396 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $DIC, $ilErr, $type, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilObject\_lookupType(), add(), ilCalendarCategoryAssignments\addAssignment(), addMilestone(), createDefaultCalendar(), distributeNotifications(), distributeUserNotifications(), load(), notification(), saveRecurrenceSettings(), ilUtil\sendFailure(), showResponsibleUsersList(), and ilCalendarCategory\TYPE_OBJ.
Referenced by saveMilestone().
|
protected |
save milestone
protected
Definition at line 386 of file class.ilCalendarAppointmentGUI.php.
References save().
ilCalendarAppointmentGUI::saveMilestoneResponsibleUsers | ( | ) |
Save milestone responsibilites.
Definition at line 571 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $DIC, and $ilCtrl.
|
protected |
save recurrence settings
protected
Definition at line 1186 of file class.ilCalendarAppointmentGUI.php.
References $_POST.
Referenced by save(), and update().
|
protected |
show info screen
protected
Definition at line 700 of file class.ilCalendarAppointmentGUI.php.
References $DIC, $ilUser, $info, $r, $tpl, $type, $users, ilObject\_getAllReferences(), ilCalendarCategories\_getInstance(), ilLink\_getStaticLink(), ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupType(), ilDatePresentation\formatPeriod(), and ilCalendarCategory\TYPE_OBJ.
Referenced by edit().
ilCalendarAppointmentGUI::showResponsibleUsersList | ( | $a_grp_id | ) |
Show responsible uses of a milestone (default set is participants of group)
Definition at line 552 of file class.ilCalendarAppointmentGUI.php.
Referenced by editResponsibleUsers(), and save().
|
protected |
Unregister calendar, was confirmed.
Definition at line 1323 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $DIC, $ilUser, and IL_CAL_UNIX.
|
protected |
update
protected
Definition at line 788 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $DIC, $ilErr, ilCalendarSettings\_getInstance(), createDefaultCalendar(), ilCalendarCategoryAssignments\deleteAssignments(), deleteExclude(), distributeNotifications(), distributeUserNotifications(), edit(), getAppointment(), load(), notification(), saveRecurrenceSettings(), and ilUtil\sendFailure().
|
protected |
Definition at line 18 of file class.ilCalendarAppointmentGUI.php.
Referenced by delete(), and getAppointment().
|
protected |
Definition at line 24 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 16 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 15 of file class.ilCalendarAppointmentGUI.php.
Referenced by initAppointment(), and initInitialDate().
|
protected |
Definition at line 23 of file class.ilCalendarAppointmentGUI.php.
Referenced by __construct(), and createDefaultCalendar().
|
private |
Definition at line 29 of file class.ilCalendarAppointmentGUI.php.
|
protected |
Definition at line 19 of file class.ilCalendarAppointmentGUI.php.
Referenced by askEdit(), and initForm().
|
protected |
Definition at line 14 of file class.ilCalendarAppointmentGUI.php.
Referenced by initSeed().
|
protected |
Definition at line 20 of file class.ilCalendarAppointmentGUI.php.
Referenced by initInitialDate().
|
protected |
Definition at line 22 of file class.ilCalendarAppointmentGUI.php.
Referenced by add(), addMilestone(), askDelete(), book(), cancelBooking(), confirmRegister(), confirmUnregister(), edit(), executeCommand(), initForm(), showInfoScreen(), and showResponsibleUsersList().