ILIAS
release_4-3 Revision
|
Administrate calendar appointments. More...
Public Member Functions | |
__construct (ilDate $seed, ilDate $initialDate, $a_appointment_id=0) | |
Constructor. | |
executeCommand () | |
Execute command. | |
editResponsibleUsers () | |
Edit responsible users. | |
showResponsibleUsersList ($a_grp_id) | |
Show responsible uses of a milestone (default set is participants of group) | |
saveMilestoneResponsibleUsers () | |
Save milestone responsibilites. | |
confirmUnregister () | |
Confirmation screen to unregister calendar. | |
book () | |
Confirmation screen for booking of consultation appointment. | |
bookconfirmed () | |
Book consultation appointment, was confirmed. | |
cancelBooking () | |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category. | |
cancelConfirmed () | |
Cancel consultation appointment or ressource booking, was confirmed This will delete the calendar entry. |
Protected Member Functions | |
cancel () | |
cancel editing | |
initForm ($a_mode, $a_as_milestone=false) | |
init form | |
add () | |
add new appointment | |
addMilestone () | |
add milestone | |
saveMilestone () | |
save milestone | |
save ($a_as_milestone=false) | |
save appointment | |
distributeUserNotifications () | |
Send mail to selected users ilObjUser $ilUser. | |
distributeNotifications ($a_cat_id, $app_id, $a_new_appointment=true) | |
Distribute mail notifications. | |
edit () | |
edit appointment | |
showInfoScreen () | |
show info screen | |
update () | |
update | |
askDelete () | |
ask delete | |
delete () | |
delete | |
deleteExclude () | |
delete single item of recurrence list | |
initTimeZone () | |
init timezone | |
initInitialDate (ilDate $initialDate) | |
init initial date | |
initSeed (ilDate $seed) | |
init seed | |
initAppointment ($a_app_id=0) | |
init appointment | |
load ($a_as_milestone=false) | |
load post | |
loadNotificationRecipients () | |
loadRecurrenceSettings ($a_as_milestone=false) | |
load recurrence settings | |
saveRecurrenceSettings () | |
save recurrence settings | |
createDefaultCalendar () | |
Create a default calendar. | |
confirmRegister () | |
Register to an appointment. | |
register () | |
Register. | |
unregister () | |
Unregister calendar, was confirmed. | |
calendarEntryToCategory (ilCalendarEntry $entry) | |
Get category object of given calendar entry. | |
doUserAutoComplete () | |
Do auto completion. |
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.
public
ilDate | seed |
Definition at line 57 of file class.ilCalendarAppointmentGUI.php.
References $ilCtrl, $lng, initAppointment(), initInitialDate(), initSeed(), and initTimeZone().
|
protected |
add new appointment
protected
Definition at line 371 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
|
protected |
add milestone
protected
Definition at line 385 of file class.ilCalendarAppointmentGUI.php.
References $tpl, and initForm().
Referenced by save().
|
protected |
ask delete
protected
Definition at line 779 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $tpl, and ilCalendarRecurrences\_getRecurrences().
ilCalendarAppointmentGUI::book | ( | ) |
Confirmation screen for booking of consultation appointment.
Definition at line 1310 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $ilUser, $timezone, $title, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), ilObjUser\_lookupFullname(), IL_CAL_FKT_DATE, ilConfirmationGUI\setFormAction(), ilCalendarSettings\TIME_FORMAT_12, and ilCalendarSettings\TIME_FORMAT_24.
ilCalendarAppointmentGUI::bookconfirmed | ( | ) |
Book consultation appointment, was confirmed.
Definition at line 1353 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $ilUser, ilCalendarCategoryAssignments\addAssignment(), ilBookingEntry\book(), ilCalendarUtil\initDefaultCalendarByType(), ilUtil\sendSuccess(), and ilCalendarCategory\TYPE_CH.
|
protected |
Get category object of given calendar entry.
ilCalendarEntry | $entry |
Definition at line 1493 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarEntry\getEntryId(), and ilCalendarCategoryAssignments\getFirstAssignment().
Referenced by cancelBooking(), and cancelConfirmed().
|
protected |
cancel editing
protected
@return |
Definition at line 109 of file class.ilCalendarAppointmentGUI.php.
ilCalendarAppointmentGUI::cancelBooking | ( | ) |
Confirmation screen to cancel consultation appointment or ressource booking depends on calendar category.
Definition at line 1384 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $ilUser, $timezone, $title, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), ilObjUser\_lookupFullname(), calendarEntryToCategory(), IL_CAL_FKT_DATE, ilConfirmationGUI\setFormAction(), ilCalendarSettings\TIME_FORMAT_12, ilCalendarSettings\TIME_FORMAT_24, 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 1446 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $ilUser, calendarEntryToCategory(), ilBookingEntry\cancelBooking(), ilConsultationHourAppointments\getAppointmentIds(), ilUtil\sendSuccess(), ilBookingReservation\setStatus(), ilBookingReservation\STATUS_CANCELLED, ilCalendarCategory\TYPE_BOOK, and ilCalendarCategory\TYPE_CH.
|
protected |
Register to an appointment.
Definition at line 1211 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_REQUEST, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
ilCalendarAppointmentGUI::confirmUnregister | ( | ) |
Confirmation screen to unregister calendar.
Definition at line 1260 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_REQUEST, $tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ilConfirmationGUI\setFormAction().
|
protected |
Create a default calendar.
protected
Definition at line 1195 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, $lng, ilCalendarCategory\DEFAULT_COLOR, and ilCalendarCategory\TYPE_USR.
Referenced by save(), and update().
|
protected |
delete
protected
@return |
Definition at line 816 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $app, ilCalendarCategoryAssignments\_deleteByAppointmentId(), ilCalendarUserNotification\deleteCalendarEntry(), and ilUtil\sendSuccess().
|
protected |
delete single item of recurrence list
protected
@return |
Definition at line 840 of file class.ilCalendarAppointmentGUI.php.
References $_GET, IL_CAL_UNIX, and ilUtil\sendSuccess().
|
protected |
Distribute mail notifications.
Definition at line 518 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 ilObjUser $ilUser.
Definition at line 485 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, 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 1506 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_REQUEST, $GLOBALS, and exit.
|
protected |
edit appointment
protected
@return |
Definition at line 604 of file class.ilCalendarAppointmentGUI.php.
References $ilErr, $ilUser, $tpl, ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), initForm(), and showInfoScreen().
Referenced by update().
ilCalendarAppointmentGUI::editResponsibleUsers | ( | ) |
Edit responsible users.
Definition at line 562 of file class.ilCalendarAppointmentGUI.php.
References ilCalendarCategories\_getInstance(), ilCalendarCategoryAssignments\_lookupCategory(), and showResponsibleUsersList().
ilCalendarAppointmentGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 78 of file class.ilCalendarAppointmentGUI.php.
References $cmd, $ilSetting, $ilUser, and $tpl.
|
protected |
init appointment
protected
int | appointment id |
Definition at line 912 of file class.ilCalendarAppointmentGUI.php.
References $initialDate, ilCalendarRecurrences\_getFirstRecurrence(), and IL_CAL_HOUR.
Referenced by __construct().
|
protected |
init form
protected
string | mode ('edit' | 'create') |
Definition at line 121 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $_POST, $ilUser, $rec, $title, $tpl, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilCalendarCategories\_lookupCategoryIdByObjId(), ilObjUser\_lookupLogin(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilCalendarCategoryAssignments\getFirstAssignment(), ilYuiUtil\initDomEvent(), ilDateTimeInputGUI\setDate(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilDateDurationInputGUI\setStartText(), ilTextInputGUI\setValue(), ilSelectInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilTextAreaInputGUI\setValue(), ilCalendarUserNotification\TYPE_EMAIL, ilCalendarCategory\TYPE_OBJ, and ilCalendarUserNotification\TYPE_USER.
Referenced by add(), addMilestone(), and edit().
|
protected |
init initial date
ilDate | $initialDate |
Definition at line 870 of file class.ilCalendarAppointmentGUI.php.
References $_GET, $initialDate, $timezone, ilDate\get(), IL_CAL_DATE, and IL_CAL_DATETIME.
Referenced by __construct().
|
protected |
init seed
protected
@return |
Definition at line 899 of file class.ilCalendarAppointmentGUI.php.
References $seed.
Referenced by __construct().
|
protected |
init timezone
protected
@return |
Definition at line 859 of file class.ilCalendarAppointmentGUI.php.
References $ilUser.
Referenced by __construct().
|
protected |
load post
protected
@return |
Definition at line 954 of file class.ilCalendarAppointmentGUI.php.
References $_POST, IL_CAL_DATE, IL_CAL_FKT_GETDATE, loadNotificationRecipients(), loadRecurrenceSettings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
|
protected |
Definition at line 1017 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $usr_id, ilObjUser\_loginExists(), ilUtil\stripSlashes(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.
Referenced by load().
|
protected |
load recurrence settings
protected
Definition at line 1055 of file class.ilCalendarAppointmentGUI.php.
References $_POST, IL_CAL_FKT_GETDATE, 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 1241 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $_REQUEST, $ilUser, IL_CAL_UNIX, and ilUtil\sendSuccess().
|
protected |
save appointment
protected
Definition at line 408 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilErr, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), ilObject\_lookupType(), add(), ilCalendarCategoryAssignments\addAssignment(), addMilestone(), createDefaultCalendar(), distributeNotifications(), distributeUserNotifications(), load(), saveRecurrenceSettings(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showResponsibleUsersList(), and ilCalendarCategory\TYPE_OBJ.
Referenced by saveMilestone().
|
protected |
save milestone
protected
Definition at line 398 of file class.ilCalendarAppointmentGUI.php.
References save().
ilCalendarAppointmentGUI::saveMilestoneResponsibleUsers | ( | ) |
|
protected |
save recurrence settings
protected
@return |
Definition at line 1164 of file class.ilCalendarAppointmentGUI.php.
References $_POST.
Referenced by save(), and update().
|
protected |
show info screen
protected
Definition at line 636 of file class.ilCalendarAppointmentGUI.php.
References $ilUser, $tpl, 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 576 of file class.ilCalendarAppointmentGUI.php.
References $tpl.
Referenced by editResponsibleUsers(), and save().
|
protected |
Unregister calendar, was confirmed.
Definition at line 1291 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $_REQUEST, $ilUser, IL_CAL_UNIX, and ilUtil\sendSuccess().
|
protected |
update
protected
Definition at line 724 of file class.ilCalendarAppointmentGUI.php.
References $_POST, $ilErr, ilCalendarSettings\_getInstance(), createDefaultCalendar(), ilCalendarCategoryAssignments\deleteAssignments(), distributeNotifications(), distributeUserNotifications(), edit(), load(), saveRecurrenceSettings(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 42 of file class.ilCalendarAppointmentGUI.php.
Referenced by delete().
|
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 initForm().
|
protected |
Definition at line 38 of file class.ilCalendarAppointmentGUI.php.
Referenced by initSeed().
|
protected |
Definition at line 44 of file class.ilCalendarAppointmentGUI.php.
Referenced by book(), cancelBooking(), and initInitialDate().
|
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().