| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
Administrate calendar appointments. More...
 Collaboration diagram for ilCalendarAppointmentGUI:
 Collaboration diagram for ilCalendarAppointmentGUI:| 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 () | |
| 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 @global 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) | |
| 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 | |
Administrate calendar appointments.
Definition at line 36 of file class.ilCalendarAppointmentGUI.php.
Constructor.
@access public
| ilDate | seed | 
Definition at line 57 of file class.ilCalendarAppointmentGUI.php.
References $ilCtrl, $lng, initAppointment(), initInitialDate(), initSeed(), and initTimeZone().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
add new appointment
@access protected
Definition at line 376 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
add milestone
@access protected
Definition at line 394 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
ask delete
@access protected
Definition at line 888 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $tpl, and ilCalendarRecurrences\_getRecurrences().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Check edit single apppointment / edit all appointments for recurring appointments.
Definition at line 614 of file class.ilCalendarAppointmentGUI.php.
References $GLOBALS, $rec, ilCalendarRecurrences\_getRecurrences(), edit(), and getAppointment().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarAppointmentGUI::book | ( | ) | 
Confirmation screen for booking of consultation appointment.
Definition at line 1411 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $ilUser, $tpl, ilObjUser\_lookupFullname(), ilDatePresentation\formatPeriod(), and initFormConfirmBooking().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarAppointmentGUI::bookconfirmed | ( | ) | 
Book consultation appointment, was confirmed.
Definition at line 1460 of file class.ilCalendarAppointmentGUI.php.
References $GLOBALS, $ilUser, ilConsultationHourUtils\bookAppointment(), initFormConfirmBooking(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilBookingEntry\writeBookingMessage().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Get category object of given calendar entry.
| ilCalendarEntry | $entry | 
Definition at line 1602 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarEntry\getEntryId().
Referenced by cancelBooking(), and cancelConfirmed().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
cancel editing
@access protected
return
Definition at line 118 of file class.ilCalendarAppointmentGUI.php.
| ilCalendarAppointmentGUI::cancelBooking | ( | ) | 
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category.
Definition at line 1497 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $ilUser, $title, $tpl, ilObjUser\_lookupFullname(), calendarEntryToCategory(), ilDatePresentation\formatPeriod(), ilConfirmationGUI\setFormAction(), ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarAppointmentGUI::cancelConfirmed | ( | ) | 
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry.
Definition at line 1546 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $GLOBALS, $ilUser, calendarEntryToCategory(), ilConsultationHourAppointments\getAppointmentIds(), ilUtil\sendSuccess(), ilBookingReservation\STATUS_CANCELLED, ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Register to an appointment.
Definition at line 1312 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $start, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarAppointmentGUI::confirmUnregister | ( | ) | 
Confirmation screen to unregister calendar.
Definition at line 1361 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $start, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Create a default calendar.
@access protected
Definition at line 1291 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, $lng, ilCalendarCategory\DEFAULT_COLOR, ilCalendarCache\getInstance(), and ilCalendarCategory\TYPE_USR.
Referenced by save(), and update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
delete
@access protected
return
Definition at line 925 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $app, ilCalendarCategoryAssignments\_deleteByAppointmentId(), ilCalendarUserNotification\deleteCalendarEntry(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
delete single item of recurrence list
@access protected
return
Definition at line 949 of file class.ilCalendarAppointmentGUI.php.
References IL_CAL_UNIX, and ilUtil\sendSuccess().
Referenced by update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Distribute mail notifications.
Definition at line 531 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Send mail to selected users @global ilObjUser $ilUser.
Definition at line 498 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, notification(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarMailNotification\TYPE_USER, ilCalendarUserNotification\TYPE_USER, and ilCalendarMailNotification\TYPE_USER_ANONYMOUS.
Referenced by save(), and update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Do auto completion.
Definition at line 1615 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $GLOBALS, exit, and ilUserAutoComplete\MAX_ENTRIES.
| 
 | protected | 
edit appointment
@access protected
return
Definition at line 655 of file class.ilCalendarAppointmentGUI.php.
References $duration, $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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCalendarAppointmentGUI::editResponsibleUsers | ( | ) | 
Edit responsible users.
Definition at line 575 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), and showResponsibleUsersList().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
| ilCalendarAppointmentGUI::executeCommand | ( | ) | 
Execute command.
@access public
Definition at line 78 of file class.ilCalendarAppointmentGUI.php.
References $cmd, $ilSetting, $ilUser, and $tpl.
| ilCalendarAppointmentGUI::getAppointment | ( | ) | 
Get current appointment.
Definition at line 106 of file class.ilCalendarAppointmentGUI.php.
References $app.
Referenced by askEdit(), edit(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
init appointment
@access protected
| int | appointment id | 
Definition at line 1024 of file class.ilCalendarAppointmentGUI.php.
References $initialDate, $start, ilCalendarRecurrences\_getFirstRecurrence(), IL_CAL_HOUR, and notification().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
init form
@access protected
| string | mode ('edit' | 'create') | 
Definition at line 130 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $ilUser, $r, $rec, $title, $tpl, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObjUser\_lookupLogin(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilYuiUtil\initDomEvent(), notification(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarCategory\TYPE_OBJ, and ilCalendarUserNotification\TYPE_USER.
Referenced by add(), addMilestone(), edit(), and load().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 1436 of file class.ilCalendarAppointmentGUI.php.
References $title.
Referenced by book(), and bookconfirmed().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
init initial date
| ilDate | $initialDate | 
Definition at line 982 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $initialDate, IL_CAL_DATE, and IL_CAL_DATETIME.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
init seed
@access protected
return
Definition at line 1011 of file class.ilCalendarAppointmentGUI.php.
References $seed.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
init timezone
@access protected
return
Definition at line 971 of file class.ilCalendarAppointmentGUI.php.
References $ilUser.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
load post
@access protected
return
Definition at line 1066 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $start, initForm(), loadNotificationRecipients(), loadRecurrenceSettings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 1111 of file class.ilCalendarAppointmentGUI.php.
References $_POST, ilObjUser\_loginExists(), notification(), ilUtil\stripSlashes(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.
Referenced by load().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
load recurrence settings
@access protected
Definition at line 1149 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Register.
Definition at line 1342 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilUser, IL_CAL_UNIX, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
save appointment
@access protected
Definition at line 421 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilErr, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilObject\_lookupType(), add(), addMilestone(), createDefaultCalendar(), distributeNotifications(), distributeUserNotifications(), load(), notification(), saveRecurrenceSettings(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showResponsibleUsersList(), and ilCalendarCategory\TYPE_OBJ.
Referenced by saveMilestone().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
save milestone
@access protected
Definition at line 411 of file class.ilCalendarAppointmentGUI.php.
References save().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCalendarAppointmentGUI::saveMilestoneResponsibleUsers | ( | ) | 
| 
 | protected | 
save recurrence settings
@access protected
return
Definition at line 1259 of file class.ilCalendarAppointmentGUI.php.
References $_POST.
Referenced by save(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
show info screen
@access protected
Definition at line 731 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, $info, $r, $tpl, ilObject\_getAllReferences(), ilCalendarCategories\_getInstance(), ilLink\_getStaticLink(), ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupType(), ilDatePresentation\formatPeriod(), ilUtil\makeClickable(), and ilCalendarCategory\TYPE_OBJ.
Referenced by edit().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCalendarAppointmentGUI::showResponsibleUsersList | ( | $a_grp_id | ) | 
Show responsible uses of a milestone (default set is participants of group)
Definition at line 589 of file class.ilCalendarAppointmentGUI.php.
References $tpl.
Referenced by editResponsibleUsers(), and save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Unregister calendar, was confirmed.
Definition at line 1392 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilUser, IL_CAL_UNIX, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
update
@access protected
Definition at line 819 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $GLOBALS, $ilErr, ilCalendarSettings\_getInstance(), createDefaultCalendar(), deleteExclude(), distributeNotifications(), distributeUserNotifications(), edit(), getAppointment(), load(), notification(), saveRecurrenceSettings(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 42 of file class.ilCalendarAppointmentGUI.php.
Referenced by delete(), and getAppointment().
| 
 | protected | 
Definition at line 48 of file class.ilCalendarAppointmentGUI.php.
| 
 | protected | 
Definition at line 40 of file class.ilCalendarAppointmentGUI.php.
| 
 | protected | 
Definition at line 39 of file class.ilCalendarAppointmentGUI.php.
Referenced by initAppointment(), and initInitialDate().
| 
 | protected | 
Definition at line 47 of file class.ilCalendarAppointmentGUI.php.
Referenced by __construct(), and createDefaultCalendar().
| 
 | protected | 
Definition at line 43 of file class.ilCalendarAppointmentGUI.php.
Referenced by askEdit(), and initForm().
| 
 | protected | 
Definition at line 38 of file class.ilCalendarAppointmentGUI.php.
Referenced by initSeed().
| 
 | protected | 
Definition at line 44 of file class.ilCalendarAppointmentGUI.php.
| 
 | protected | 
Definition at line 46 of file class.ilCalendarAppointmentGUI.php.
Referenced by add(), addMilestone(), askDelete(), book(), cancelBooking(), confirmRegister(), confirmUnregister(), edit(), executeCommand(), initForm(), showInfoScreen(), and showResponsibleUsersList().