|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilConsultationHoursGUI: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... | |
| assignUsersToGroup (array $usr_ids) | |
| edit () | |
| Edit multiple sequence items. More... | |
| confirmDelete () | |
| confirm delete for multiple entries More... | |
| delete () | |
| delete multiple entries More... | |
| showProfile () | |
| show public profile of given user More... | |
| settings () | |
| display settings gui More... | |
| updateSettings () | |
| save settings More... | |
Protected Member Functions | |
| initSearchAssignmentToAppointments ($a_default=false) | |
| initGroupIdFromQuery () | |
| initAppointmentIdsFromQuery () | |
| initAppointmentIdsFromPost () | |
| initAppointmentIdsFromPostString () | |
| initGroupIdsFromPost () | |
| initBookingUsersFromPost () | |
| initBookingUsersFromQuery () | |
| searchUsersForAppointments () | |
| sendInfoAboutUnassignedUsers (array $unassigned) | |
| Send info message about unassigned users. More... | |
| groupList () | |
| Show consultation hour group. More... | |
| addGroup (?ilPropertyFormGUI $form=null) | |
| Show add group form. More... | |
| saveGroup () | |
| Save new group. More... | |
| editGroup (?ilPropertyFormGUI $form=null) | |
| Edit group. More... | |
| updateGroup () | |
| Update group. More... | |
| confirmDeleteGroup () | |
| Confirm delete. More... | |
| deleteGroup () | |
| Delete groups. More... | |
| initGroupForm (int $a_group_id=0) | |
| bookingList () | |
| Show list of bookings. More... | |
| confirmDeleteBooking () | |
| Show delete booking confirmation. More... | |
| confirmRejectBooking (bool $a_send_notification=true) | |
| Show delete booking confirmation. More... | |
| deleteBooking () | |
| Delete booking. More... | |
| rejectBooking (bool $a_send_notification=true) | |
| appointmentList () | |
| Show settings of consultation hours. More... | |
| createSequence () | |
| Create new sequence. More... | |
| initFormSequence (int $a_mode) | |
| saveSequence () | |
| Save new sequence. More... | |
| createAppointments (ilBookingEntry $booking) | |
| Create calendar appointments. More... | |
| setTabs () | |
| setSubTabs () | |
| createNewBookingEntry (ilPropertyFormGUI $validate_form) | |
| rewriteBookingIdsForAppointments (ilBookingEntry $booking, array $appointments, ilPropertyFormGUI $form) | |
| updateMulti () | |
| Update multiple sequence items. More... | |
| getProfileBackUrl () | |
| Build context-sensitive profile back url. More... | |
| initSettingsForm () | |
| build settings form More... | |
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 |
| HttpServices | $http |
Private Attributes | |
| int | $user_id |
| bool | $search_assignment_to_appointments = false |
| ilBookingEntry | $booking = null |
| ilPropertyFormGUI | $form = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Consultation hours editor
Definition at line 29 of file class.ilConsultationHoursGUI.php.
| ilConsultationHoursGUI::__construct | ( | ) |
Constructor.
Definition at line 57 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().
Here is the call graph for this function:
|
protected |
Show add group form.
Definition at line 419 of file class.ilConsultationHoursGUI.php.
References $form, ilPropertyFormGUI\getHTML(), initGroupForm(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by saveGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show settings of consultation hours.
Definition at line 668 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), getUserId(), ILIAS\Repository\help(), ILIAS\Repository\lng(), setSubTabs(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
Referenced by edit().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 $app, $booking, ilConsultationHourUtils\bookAppointment(), ILIAS\Repository\ctrl(), ilBookingEntry\getCurrentNumberOfBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\getNumberOfBookings(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), initBookingUsersFromPost(), ILIAS\Repository\lng(), ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
Referenced by assignUsersToAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::assignUsersToAppointments | ( | array | $users | ) |
Assign users to multiple appointments.
Definition at line 303 of file class.ilConsultationHoursGUI.php.
References $app, assignUsersToAppointment(), ILIAS\Repository\ctrl(), ilSession\get(), and sendInfoAboutUnassignedUsers().
Here is the call graph for this function:| ilConsultationHoursGUI::assignUsersToGroup | ( | array | $usr_ids | ) |
| int[] | $usr_ids |
Definition at line 365 of file class.ilConsultationHoursGUI.php.
References $app, $booking, ilConsultationHourUtils\bookAppointment(), ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilBookingEntry\getCurrentNumberOfBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\getNumberOfBookings(), IL_CAL_DAY, IL_CAL_UNIX, initGroupIdFromQuery(), ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
Here is the call graph for this function:
|
protected |
Show list of bookings.
Definition at line 567 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourAppointments\getAppointmentIds(), getUserId(), ILIAS\Repository\help(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by confirmRejectBooking().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 1130 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ILIAS\Repository\lng(), and ilBookingEntry\lookupBookingsForAppointment().
Here is the call graph for this function:
|
protected |
Show delete booking confirmation.
Definition at line 582 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
Here is the call graph for this function:
|
protected |
Confirm delete.
Definition at line 493 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, ILIAS\Repository\ctrl(), initGroupIdFromQuery(), setSubTabs(), and ILIAS\Repository\tabs().
Here is the call graph for this function:
|
protected |
Show delete booking confirmation.
Definition at line 590 of file class.ilConsultationHoursGUI.php.
References bookingList(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), initBookingUsersFromPost(), initBookingUsersFromQuery(), ILIAS\Repository\lng(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by confirmDeleteBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Create calendar appointments.
Definition at line 867 of file class.ilConsultationHoursGUI.php.
References $booking, $i, ILIAS\Repository\form(), ilBookingEntry\getId(), getUserId(), ILIAS\UI\Implementation\Component\Input\getValue(), ilDateTime\HOUR, ilCalendarUtil\initDefaultCalendarByType(), ILIAS\Repository\lng(), ilDateTime\MINUTE, ilCalendarEntry\TRANSLATION_SYSTEM, ilCalendarCategory\TYPE_CH, ilDateList\TYPE_DATETIME, and ilDateTime\YEAR.
Referenced by saveSequence().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1031 of file class.ilConsultationHoursGUI.php.
References $booking, $ref_id, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\form(), ilConsultationHourGroups\getCountGroupsOfUser(), getUserId(), ILIAS\Repository\lng(), ilBookingEntry\save(), ilBookingEntry\setBookingGroup(), ilBookingEntry\setDeadlineHours(), ilBookingEntry\setNumberOfBookings(), ilBookingEntry\setObjId(), and ilBookingEntry\setTargetObjIds().
Here is the call graph for this function:
|
protected |
Create new sequence.
Definition at line 689 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\form(), IL_CAL_UNIX, and initFormSequence().
Here is the call graph for this function:| ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 1177 of file class.ilConsultationHoursGUI.php.
References ilCalendarCategoryAssignments\_deleteByAppointmentId(), ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), ilBookingEntry\getInstanceByCalendarEntryId(), ILIAS\Repository\lng(), and ilBookingEntry\removeObsoleteEntries().
Here is the call graph for this function:
|
protected |
Delete booking.
Definition at line 645 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
Here is the call graph for this function:
|
protected |
Delete groups.
Definition at line 518 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), initGroupIdsFromPost(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 980 of file class.ilConsultationHoursGUI.php.
References $booking, ilObject\_getAllReferences(), appointmentList(), ILIAS\Repository\form(), ilBookingEntry\getBookingGroup(), ilBookingEntry\getDeadlineHours(), ilBookingEntry\getNumberOfBookings(), ilBookingEntry\getTargetObjIds(), initAppointmentIdsFromPost(), initAppointmentIdsFromPostString(), initAppointmentIdsFromQuery(), initFormSequence(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Edit group.
Definition at line 454 of file class.ilConsultationHoursGUI.php.
References $form, ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), initGroupForm(), initGroupIdFromQuery(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by updateGroup().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::executeCommand | ( | ) |
Definition at line 192 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), getProfileBackUrl(), ILIAS\Repository\help(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), initGroupIdFromQuery(), initSearchAssignmentToAppointments(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\tabs().
Here is the call graph for this function:
|
protected |
Build context-sensitive profile back url.
Definition at line 1224 of file class.ilConsultationHoursGUI.php.
References $url, ILIAS\Repository\ctrl(), and ILIAS\FileDelivery\http().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::getUserId | ( | ) |
Definition at line 259 of file class.ilConsultationHoursGUI.php.
References $user_id.
Referenced by appointmentList(), bookingList(), createAppointments(), createNewBookingEntry(), groupList(), initFormSequence(), saveGroup(), saveSequence(), setSubTabs(), setTabs(), and updateGroup().
Here is the caller graph for this function:
|
protected |
Show consultation hour group.
Definition at line 400 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilConsultationHourGroups\getGroupsOfUser(), getUserId(), ILIAS\Repository\help(), ILIAS\Repository\lng(), setSubTabs(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
Here is the call graph for this function:
|
protected |
Definition at line 122 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), edit(), executeCommand(), and searchUsersForAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 135 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 114 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), edit(), executeCommand(), and searchUsersForAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 163 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), confirmRejectBooking(), and rejectBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 179 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by confirmRejectBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 706 of file class.ilConsultationHoursGUI.php.
References $form, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilCalendarRecurrence\FREQ_DAILY, ilCalendarRecurrence\FREQ_MONTHLY, ilCalendarRecurrence\FREQ_WEEKLY, ilConsultationHourGroups\getGroupSelectOptions(), getUserId(), ilYuiUtil\initDomEvent(), ILIAS\Repository\lng(), MODE_CREATE, and MODE_MULTI.
Referenced by createSequence(), edit(), and saveSequence().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 528 of file class.ilConsultationHoursGUI.php.
References $form, $GLOBALS, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilFormGUI\setFormAction(), and ilPropertyFormGUI\setTitle().
Referenced by addGroup(), editGroup(), saveGroup(), and updateGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 103 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToGroup(), confirmDeleteGroup(), editGroup(), executeCommand(), and updateGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 147 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by deleteGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 91 of file class.ilConsultationHoursGUI.php.
References $search_assignment_to_appointments, ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
build settings form
Definition at line 1254 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getManager(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 650 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), initBookingUsersFromPost(), and ILIAS\Repository\lng().
Referenced by deleteBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1065 of file class.ilConsultationHoursGUI.php.
References $booking, $form, ilConsultationHourUtils\findCalendarAppointmentsForBooking(), ilBookingEntry\getId(), ilPropertyFormGUI\getInput(), and ilBookingEntry\getInstanceByCalendarEntryId().
Here is the call graph for this function:
|
protected |
Save new group.
Definition at line 433 of file class.ilConsultationHoursGUI.php.
References $form, $GLOBALS, addGroup(), ilPropertyFormGUI\checkInput(), ilPropertyFormGUI\getInput(), getUserId(), and initGroupForm().
Here is the call graph for this function:
|
protected |
Save new sequence.
Definition at line 816 of file class.ilConsultationHoursGUI.php.
References $booking, $ref_id, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), createAppointments(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilConsultationHourGroups\getGroupsOfUser(), getUserId(), initFormSequence(), ILIAS\Repository\lng(), ilBookingEntry\save(), ilBookingEntry\setBookingGroup(), ilBookingEntry\setDeadlineHours(), ilBookingEntry\setNumberOfBookings(), ilBookingEntry\setObjId(), and ilBookingEntry\setTargetObjIds().
Here is the call graph for this function:
|
protected |
Definition at line 264 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), ILIAS\Repository\lng(), and ilSession\set().
Here is the call graph for this function:
|
protected |
Send info message about unassigned users.
| int[] | $unassigned |
Definition at line 286 of file class.ilConsultationHoursGUI.php.
References $user_id, ilObjUser\_lookupFullname(), and ILIAS\Repository\lng().
Referenced by assignUsersToAppointment(), assignUsersToAppointments(), and assignUsersToGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 957 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), getUserId(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by addGroup(), appointmentList(), bookingList(), confirmDeleteGroup(), confirmRejectBooking(), editGroup(), and groupList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 935 of file class.ilConsultationHoursGUI.php.
References $user_id, ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getManagedUsers(), getUserId(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::settings | ( | ) |
display settings gui
Definition at line 1242 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\help(), and ILIAS\Repository\tabs().
Here is the call graph for this function:| ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 1205 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().
Here is the call graph for this function:
|
protected |
Update group.
Definition at line 469 of file class.ilConsultationHoursGUI.php.
References $form, $GLOBALS, ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), editGroup(), ilPropertyFormGUI\getInput(), getUserId(), initGroupForm(), initGroupIdFromQuery(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Update multiple sequence items.
Definition at line 1100 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), and ilBookingEntry\removeObsoleteEntries().
Here is the call graph for this function:| ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 1273 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilConsultationHourAppointments\setManager(), and ILIAS\Repository\tabs().
Here is the call graph for this function:
|
private |
Definition at line 50 of file class.ilConsultationHoursGUI.php.
Referenced by assignUsersToAppointment(), assignUsersToGroup(), createAppointments(), createNewBookingEntry(), edit(), rewriteBookingIdsForAppointments(), and saveSequence().
|
protected |
Definition at line 37 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 52 of file class.ilConsultationHoursGUI.php.
Referenced by addGroup(), editGroup(), initFormSequence(), initGroupForm(), rewriteBookingIdsForAppointments(), saveGroup(), and updateGroup().
|
protected |
Definition at line 40 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 41 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 45 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 38 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 44 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 49 of file class.ilConsultationHoursGUI.php.
Referenced by initSearchAssignmentToAppointments().
|
protected |
Definition at line 42 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 43 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 39 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 48 of file class.ilConsultationHoursGUI.php.
Referenced by __construct(), getUserId(), sendInfoAboutUnassignedUsers(), and setTabs().
|
protected |
Definition at line 35 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 31 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence().
|
protected |
Definition at line 33 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence().
|
protected |
Definition at line 32 of file class.ilConsultationHoursGUI.php.