ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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... | |
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().
|
protected |
Show add group form.
Definition at line 419 of file class.ilConsultationHoursGUI.php.
References ilPropertyFormGUI\getHTML(), initGroupForm(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by saveGroup().
|
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 confirmDelete(), delete(), and edit().
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, 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 $app, assignUsersToAppointment(), ILIAS\Repository\ctrl(), ilSession\get(), and sendInfoAboutUnassignedUsers().
ilConsultationHoursGUI::assignUsersToGroup | ( | array | $usr_ids | ) |
int[] | $usr_ids |
Definition at line 365 of file class.ilConsultationHoursGUI.php.
References $app, ilConsultationHourUtils\bookAppointment(), ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilBookingEntry\getCurrentNumberOfBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\getNumberOfBookings(), IL_CAL_DAY, IL_CAL_UNIX, initGroupIdFromQuery(), ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
|
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().
ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 1130 of file class.ilConsultationHoursGUI.php.
References appointmentList(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), ILIAS\Repository\lng(), and ilBookingEntry\lookupBookingsForAppointment().
|
protected |
Show delete booking confirmation.
Definition at line 582 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
|
protected |
Confirm delete.
Definition at line 493 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, ILIAS\Repository\ctrl(), initGroupIdFromQuery(), setSubTabs(), and ILIAS\Repository\tabs().
|
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().
|
protected |
Create calendar appointments.
Definition at line 867 of file class.ilConsultationHoursGUI.php.
References $i, 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 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().
Referenced by updateMulti().
|
protected |
Create new sequence.
Definition at line 689 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\form(), IL_CAL_UNIX, and initFormSequence().
ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 1177 of file class.ilConsultationHoursGUI.php.
References $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointmentList(), ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), ilBookingEntry\getCurrentBookings(), ilBookingEntry\getInstanceByCalendarEntryId(), initAppointmentIdsFromPost(), ILIAS\Repository\lng(), and ilBookingEntry\removeObsoleteEntries().
|
protected |
Delete booking.
Definition at line 645 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
|
protected |
Delete groups.
Definition at line 518 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), initGroupIdsFromPost(), and ILIAS\Repository\lng().
ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 980 of file class.ilConsultationHoursGUI.php.
References ilObject\_getAllReferences(), appointmentList(), ILIAS\Repository\form(), ilBookingEntry\getBookingGroup(), ilBookingEntry\getDeadlineHours(), ilBookingEntry\getNumberOfBookings(), ilBookingEntry\getTargetObjIds(), initAppointmentIdsFromPost(), initAppointmentIdsFromPostString(), initAppointmentIdsFromQuery(), initFormSequence(), and ILIAS\Repository\lng().
Referenced by updateMulti().
|
protected |
Edit group.
Definition at line 454 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), initGroupForm(), initGroupIdFromQuery(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by updateGroup().
ilConsultationHoursGUI::executeCommand | ( | ) |
Definition at line 192 of file class.ilConsultationHoursGUI.php.
References $user_id, ILIAS\Repository\ctrl(), getProfileBackUrl(), ILIAS\Repository\help(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), initGroupIdFromQuery(), initSearchAssignmentToAppointments(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\tabs().
|
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(), and showProfile().
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().
|
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().
|
protected |
Definition at line 122 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), confirmDelete(), delete(), edit(), executeCommand(), and searchUsersForAppointments().
|
protected |
Definition at line 135 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit(), and updateMulti().
|
protected |
Definition at line 114 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), confirmDelete(), edit(), executeCommand(), and searchUsersForAppointments().
|
protected |
Definition at line 163 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assignUsersToAppointment(), confirmRejectBooking(), and rejectBooking().
|
protected |
Definition at line 179 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by confirmRejectBooking().
|
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(), ilRecurrenceInputGUI\setEnabledSubForms(), ilFormPropertyGUI\setInfo(), ilTextAreaInputGUI\setRows(), ilDurationInputGUI\setShowMinutes(), ilDateTimeInputGUI\setShowTime(), and ilNumberInputGUI\setSize().
Referenced by createSequence(), edit(), saveSequence(), and updateMulti().
|
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().
|
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().
|
protected |
Definition at line 147 of file class.ilConsultationHoursGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by deleteGroup().
|
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().
|
protected |
build settings form
Definition at line 1254 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 650 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourUtils\cancelBooking(), ILIAS\Repository\ctrl(), initBookingUsersFromPost(), and ILIAS\Repository\lng().
Referenced by deleteBooking().
|
protected |
Definition at line 1065 of file class.ilConsultationHoursGUI.php.
References ilConsultationHourUtils\findCalendarAppointmentsForBooking(), ilBookingEntry\getId(), ilPropertyFormGUI\getInput(), and ilBookingEntry\getInstanceByCalendarEntryId().
Referenced by updateMulti().
|
protected |
Save new group.
Definition at line 433 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, addGroup(), ilPropertyFormGUI\checkInput(), ilPropertyFormGUI\getInput(), getUserId(), and initGroupForm().
|
protected |
Save new sequence.
Definition at line 816 of file class.ilConsultationHoursGUI.php.
References $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().
|
protected |
Definition at line 264 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), initAppointmentIdsFromPost(), initAppointmentIdsFromQuery(), ILIAS\Repository\lng(), and ilSession\set().
|
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(), assignUsersToAppointments(), and assignUsersToGroup().
|
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().
|
protected |
Definition at line 935 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 1242 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 1205 of file class.ilConsultationHoursGUI.php.
References ILIAS\Repository\ctrl(), getProfileBackUrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ILIAS\Repository\tabs().
|
protected |
Update group.
Definition at line 469 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), editGroup(), ilPropertyFormGUI\getInput(), getUserId(), initGroupForm(), initGroupIdFromQuery(), and ILIAS\Repository\lng().
|
protected |
Update multiple sequence items.
Definition at line 1100 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 1273 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 50 of file class.ilConsultationHoursGUI.php.
Referenced by createNewBookingEntry().
|
protected |
Definition at line 37 of file class.ilConsultationHoursGUI.php.
|
private |
Definition at line 52 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence(), initGroupForm(), and initSettingsForm().
|
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(), delete(), executeCommand(), and getUserId().
|
protected |
Definition at line 35 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 31 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 33 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 32 of file class.ilConsultationHoursGUI.php.