ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Consultation hours editor. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
executeCommand () | |
getUserId () | |
assignUsersToAppointments (array $users) | |
Assign users to multiple appointments. More... | |
assignUsersToAppointment (array $users, int $a_app=0, bool $a_redirect=true) | |
Assign users to an appointment. More... | |
edit () | |
showProfile () | |
show public profile of given user More... | |
settings () | |
display settings gui More... | |
updateSettings () | |
save settings More... | |
Data Fields | |
const | VIEW_MODE_PERIOD_UPCOMING = 'upcoming' |
const | VIEW_MODE_PERIOD_PAST = 'past' |
const | VIEW_MODE_PERIOD_ALL = 'all' |
const | VIEW_MODE_STATUS_BOOKED = 'booked' |
const | VIEW_MODE_STATUS_OPEN = 'open' |
const | VIEW_MODE_STATUS_ALL = 'all' |
Protected Attributes | |
const | MODE_CREATE = 1 |
const | MODE_UPDATE = 2 |
const | MODE_MULTI = 3 |
const | MAX_APPOINTMENTS_PER_SEQUENCE = 1000 |
ilCtrlInterface | $ctrl |
ilLanguage | $lng |
ilGlobalTemplateInterface | $tpl |
ilObjUser | $global_user |
ilHelpGUI | $help |
ilTabsGUI | $tabs |
ilToolbarGUI | $toolbar |
RefineryFactory | $refinery |
GlobalHttpState | $http |
Private Attributes | |
UIFactory | $ui_factory |
UIRenderer | $ui_renderer |
int | $user_id |
bool | $search_assignment_to_appointments = false |
ilBookingEntry | $booking = null |
ilPropertyFormGUI | $form = null |
string | $vm_period = '' |
string | $vm_status = '' |
Consultation hours editor.
Definition at line 34 of file class.ilConsultationHoursGUI.php.
ilConsultationHoursGUI::__construct | ( | ) |
Constructor.
Definition at line 77 of file class.ilConsultationHoursGUI.php.
References $DIC, $user_id, ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getManagedUsers(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
|
protected |
Definition at line 929 of file class.ilConsultationHoursGUI.php.
References getUserId(), initViewMode(), and renderViewControl().
Referenced by cancelBooking(), confirmCancelBooking(), deleteAppointments(), edit(), and sendMailToSelectedUsers().
ilConsultationHoursGUI::assignUsersToAppointment | ( | array | $users, |
int | $a_app = 0 , |
||
bool | $a_redirect = true |
||
) |
Assign users to an appointment.
array | $users | |
int | $a_app | |
bool | $a_redirect |
ilCtrlException |
Definition at line 326 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourUtils\bookAppointment(), ILIAS\Repository\ctrl(), ilBookingEntry\getCurrentNumberOfBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\getNumberOfBookings(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), initBookingUsersFromPost(), ILIAS\Repository\lng(), ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
Referenced by assignUsersToAppointments().
ilConsultationHoursGUI::assignUsersToAppointments | ( | array | $users | ) |
Assign users to multiple appointments.
Definition at line 303 of file class.ilConsultationHoursGUI.php.
References assignUsersToAppointment(), ILIAS\Repository\ctrl(), ilSession\get(), and sendInfoAboutUnassignedUsers().
|
protected |
Show list of bookings.
Definition at line 372 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourAppointments\getAppointmentIds(), getUserId(), and ILIAS\Repository\help().
Referenced by confirmRejectBooking().
|
protected |
Definition at line 1033 of file class.ilConsultationHoursGUI.php.
References $data, appointments(), ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by deleteBooking().
|
protected |
Definition at line 997 of file class.ilConsultationHoursGUI.php.
References appointments(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initAppointmentIdsFromTableAction(), and ILIAS\Repository\lng().
Referenced by handleBookingTableActions().
|
protected |
Definition at line 1074 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ILIAS\FileDelivery\http(), initAppointmentIdsFromTableAction(), and ILIAS\Repository\lng().
Referenced by handleBookingTableActions().
|
protected |
Show delete booking confirmation.
Definition at line 384 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
|
protected |
Show delete booking confirmation.
Definition at line 392 of file class.ilConsultationHoursGUI.php.
References bookingList(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), initBookingUsersFromPost(), initBookingUsersFromQuery(), and ILIAS\Repository\lng().
Referenced by confirmDeleteBooking().
|
protected |
Create calendar appointments.
Definition at line 610 of file class.ilConsultationHoursGUI.php.
References ilCalendarCategoryAssignments\addAssignment(), ilCalendarRecurrenceCalculator\calculateDateList(), ILIAS\Repository\form(), ilBookingEntry\getId(), getUserId(), ilDateTime\HOUR, ilCalendarUtil\initDefaultCalendarByType(), ILIAS\Repository\lng(), ilDateTime\MINUTE, ilCalendarEntry\TRANSLATION_SYSTEM, ilCalendarCategory\TYPE_CH, ilDateList\TYPE_DATETIME, and ilDateTime\YEAR.
Referenced by saveSequence().
|
protected |
Definition at line 746 of file class.ilConsultationHoursGUI.php.
References $booking, $ref_id, ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\form(), ILIAS\Repository\lng(), null, ilBookingEntry\save(), ilBookingEntry\setDeadlineHours(), ilBookingEntry\setNumberOfBookings(), ilBookingEntry\setObjId(), and ilBookingEntry\setTargetObjIds().
Referenced by updateMulti().
|
protected |
Create new sequence.
Definition at line 445 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\form(), IL_CAL_UNIX, and initFormSequence().
|
protected |
Definition at line 1104 of file class.ilConsultationHoursGUI.php.
References $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointments(), ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), ilBookingEntry\getCurrentBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilBookingEntry\removeObsoleteEntries().
|
protected |
Definition at line 1028 of file class.ilConsultationHoursGUI.php.
References cancelBooking().
ilConsultationHoursGUI::edit | ( | ) |
Definition at line 700 of file class.ilConsultationHoursGUI.php.
References ilObject\_getAllReferences(), appointments(), ILIAS\Repository\form(), ilBookingEntry\getDeadlineHours(), ilBookingEntry\getNumberOfBookings(), ilBookingEntry\getTargetObjIds(), initAppointmentIdsFromPostString(), initAppointmentIdsFromTableAction(), initFormSequence(), and ILIAS\Repository\lng().
Referenced by handleBookingTableActions(), and updateMulti().
ilConsultationHoursGUI::executeCommand | ( | ) |
Definition at line 210 of file class.ilConsultationHoursGUI.php.
References $user_id, ILIAS\Repository\ctrl(), getProfileBackUrl(), ILIAS\Repository\help(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), initSearchAssignmentToAppointments(), ILIAS\Repository\lng(), and setTabs().
|
protected |
Build context-sensitive profile back url.
Definition at line 860 of file class.ilConsultationHoursGUI.php.
References $url, ILIAS\Repository\ctrl(), and ILIAS\FileDelivery\http().
Referenced by executeCommand(), and showProfile().
ilConsultationHoursGUI::getUserId | ( | ) |
Definition at line 265 of file class.ilConsultationHoursGUI.php.
References $user_id.
Referenced by appointments(), bookingList(), createAppointments(), initAppointmentIdsFromTableAction(), saveSequence(), and setTabs().
|
protected |
Definition at line 942 of file class.ilConsultationHoursGUI.php.
References confirmCancelBooking(), confirmDeleteAppointments(), ILIAS\Repository\ctrl(), edit(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), searchUsersForAppointments(), and sendMailToSelectedUsers().
|
protected |
Definition at line 153 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), and executeCommand().
|
protected |
Definition at line 166 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit(), and updateMulti().
|
protected |
Definition at line 145 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), and executeCommand().
|
protected |
Definition at line 125 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourAppointments\getAppointmentIds(), getUserId(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by confirmCancelBooking(), confirmDeleteAppointments(), edit(), searchUsersForAppointments(), and sendMailToSelectedUsers().
|
protected |
Definition at line 181 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), and confirmRejectBooking().
|
protected |
Definition at line 197 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by confirmRejectBooking().
|
protected |
Definition at line 462 of file class.ilConsultationHoursGUI.php.
References $form, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilCalendarRecurrence\FREQ_DAILY, ilCalendarRecurrence\FREQ_MONTHLY, ilCalendarRecurrence\FREQ_WEEKLY, ilYuiUtil\initDomEvent(), ILIAS\Repository\lng(), ilRecurrenceInputGUI\setEnabledSubForms(), ilFormPropertyGUI\setInfo(), ilTextAreaInputGUI\setRows(), ilDurationInputGUI\setShowMinutes(), ilDateTimeInputGUI\setShowTime(), and ilNumberInputGUI\setSize().
Referenced by createSequence(), edit(), saveSequence(), and updateMulti().
|
protected |
Definition at line 113 of file class.ilConsultationHoursGUI.php.
References $search_assignment_to_appointments, ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand().
|
protected |
Definition at line 1139 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by renderViewControl().
|
protected |
build settings form
Definition at line 890 of file class.ilConsultationHoursGUI.php.
References $form, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getManager(), ILIAS\Repository\lng(), ilFormGUI\setFormAction(), and ilPropertyFormGUI\setTitle().
Referenced by settings(), and updateSettings().
|
protected |
Definition at line 1205 of file class.ilConsultationHoursGUI.php.
References $DIC, ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by appointments().
|
protected |
Definition at line 1148 of file class.ilConsultationHoursGUI.php.
References ilToolbarGUI\addComponent(), ilToolbarGUI\addSeparator(), ILIAS\Repository\ctrl(), initSequenceCreation(), and ILIAS\Repository\lng().
Referenced by appointments().
|
protected |
Definition at line 776 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourUtils\findCalendarAppointmentsForBooking(), ilBookingEntry\getId(), ilPropertyFormGUI\getInput(), and ilBookingEntry\getInstanceByCalendarEntryId().
Referenced by updateMulti().
|
protected |
Save new sequence.
Definition at line 564 of file class.ilConsultationHoursGUI.php.
References $ref_id, ilObject\_lookupObjId(), ilObject\_lookupType(), createAppointments(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), getUserId(), initFormSequence(), ILIAS\Repository\lng(), ilBookingEntry\save(), ilBookingEntry\setDeadlineHours(), ilBookingEntry\setNumberOfBookings(), ilBookingEntry\setObjId(), and ilBookingEntry\setTargetObjIds().
|
protected |
Definition at line 270 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), initAppointmentIdsFromTableAction(), ILIAS\Repository\lng(), and ilSession\set().
Referenced by handleBookingTableActions().
|
protected |
Send info message about unassigned users.
int[] | $unassigned |
Definition at line 286 of file class.ilConsultationHoursGUI.php.
References ilObjUser\_lookupFullname(), and ILIAS\Repository\lng().
Referenced by assignUsersToAppointment(), and assignUsersToAppointments().
|
protected |
Definition at line 964 of file class.ilConsultationHoursGUI.php.
References ilObjUser\_lookupLogin(), appointments(), ILIAS\Repository\ctrl(), ilBookingEntry\getCurrentBookings(), ilMailFormCall\getRedirectTarget(), initAppointmentIdsFromTableAction(), and ILIAS\Repository\lng().
Referenced by handleBookingTableActions().
|
protected |
Definition at line 678 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getManagedUsers(), getUserId(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by executeCommand().
ilConsultationHoursGUI::settings | ( | ) |
display settings gui
Definition at line 878 of file class.ilConsultationHoursGUI.php.
References ilPropertyFormGUI\getHTML(), ILIAS\Repository\help(), initSettingsForm(), and ILIAS\Repository\tabs().
ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 841 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), getProfileBackUrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().
|
protected |
Update multiple sequence items.
Definition at line 811 of file class.ilConsultationHoursGUI.php.
References createNewBookingEntry(), ILIAS\Repository\ctrl(), edit(), ILIAS\Repository\form(), initAppointmentIdsFromPostString(), initFormSequence(), ILIAS\Repository\lng(), ilBookingEntry\removeObsoleteEntries(), and rewriteBookingIdsForAppointments().
ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 909 of file class.ilConsultationHoursGUI.php.
References ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), initSettingsForm(), ILIAS\Repository\lng(), ilConsultationHourAppointments\setManager(), and ILIAS\Repository\tabs().
|
private |
Definition at line 67 of file class.ilConsultationHoursGUI.php.
Referenced by createNewBookingEntry().
|
protected |
Definition at line 50 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 69 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence(), and initSettingsForm().
|
protected |
Definition at line 53 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 54 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 58 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 51 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 57 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 66 of file class.ilConsultationHoursGUI.php.
Referenced by initSearchAssignmentToAppointments().
|
protected |
Definition at line 55 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 56 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 52 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 59 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 60 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 65 of file class.ilConsultationHoursGUI.php.
Referenced by __construct(), deleteAppointments(), executeCommand(), and getUserId().
|
private |
Definition at line 71 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 72 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 48 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 44 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 46 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 45 of file class.ilConsultationHoursGUI.php.
const ilConsultationHoursGUI::VIEW_MODE_PERIOD_ALL = 'all' |
Definition at line 38 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().
const ilConsultationHoursGUI::VIEW_MODE_PERIOD_PAST = 'past' |
Definition at line 37 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().
const ilConsultationHoursGUI::VIEW_MODE_PERIOD_UPCOMING = 'upcoming' |
Definition at line 36 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().
const ilConsultationHoursGUI::VIEW_MODE_STATUS_ALL = 'all' |
Definition at line 42 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().
const ilConsultationHoursGUI::VIEW_MODE_STATUS_BOOKED = 'booked' |
Definition at line 40 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().
const ilConsultationHoursGUI::VIEW_MODE_STATUS_OPEN = 'open' |
Definition at line 41 of file class.ilConsultationHoursGUI.php.
Referenced by ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered().