|
ILIAS
Release_5_0_x_branch Revision 61816
|
Consultation hours editor. More...
Collaboration diagram for ilConsultationHoursGUI:Public Member Functions | |
| __construct () | |
| Constructor. | |
| executeCommand () | |
| Execute command. | |
| getUserId () | |
| Get user id. | |
| assignUsersToAppointments (array $users) | |
| Assign users to multiple appointments. | |
| assignUsersToAppointment (array $users, $a_app=0, $a_redirect=true) | |
| Assign users to an appointment. | |
| assignUsersToGroup (array $usr_ids) | |
| edit () | |
| Edit multiple sequence items. | |
| confirmDelete () | |
| confirm delete for multiple entries | |
| delete () | |
| delete multiple entries | |
| showProfile () | |
| show public profile of given user | |
| settings () | |
| display settings gui | |
| updateSettings () | |
| save settings | |
Data Fields | |
| const | MODE_CREATE = 1 |
| const | MODE_UPDATE = 2 |
| const | MODE_MULTI = 3 |
Protected Member Functions | |
| searchUsersForAppointments () | |
| start searching for users | |
| sendInfoAboutUnassignedUsers ($unassigned) | |
| Send info message about unassigned users. | |
| groupList () | |
| Show consultation hour group type $ilToolbar. | |
| addGroup (ilPropertyFormGUI $form=null) | |
| Show add group form type $ilToolbar type $ilTabs. | |
| saveGroup () | |
| Save new group. | |
| editGroup (ilPropertyFormGUI $form=null) | |
| Edit group type $ilCtrl. | |
| updateGroup () | |
| Update group type $ilCtrl type $tpl type $ilTabs. | |
| confirmDeleteGroup () | |
| Confirm delete type $ilCtrl type $ilTabs. | |
| deleteGroup () | |
| Delete groups. | |
| initGroupForm ($a_group_id=0) | |
| Init new/update group form. | |
| bookingList () | |
| Show list of bookings. | |
| confirmDeleteBooking () | |
| Show delete booking confirmation. | |
| confirmRejectBooking ($a_send_notification=true) | |
| Show delete booking confirmation. | |
| deleteBooking () | |
| Delete booking. | |
| rejectBooking ($a_send_notification=true) | |
| appointmentList () | |
| Show settings of consultation hours. | |
| createSequence () | |
| Create new sequence. | |
| initFormSequence ($a_mode) | |
| Init form. | |
| saveSequence () | |
| Save new sequence. | |
| createAppointments (ilBookingEntry $booking) | |
| Create calendar appointments. | |
| setTabs () | |
| Set tabs. | |
| setSubTabs () | |
| Set sub tabs type $ilTabs type $ilCtrl. | |
| updateMulti () | |
| Update multiple sequence items. | |
| getProfileBackUrl () | |
| Build context-sensitive profile back url. | |
| initSettingsForm () | |
| build settings form | |
Protected Attributes | |
| $user_id | |
| $ctrl | |
| $booking = null | |
Consultation hours editor.
: ilConsultationHoursGUI: ilPublicUserProfileGUI, ilRepositorySearchGUI
Definition at line 34 of file class.ilConsultationHoursGUI.php.
| ilConsultationHoursGUI::__construct | ( | ) |
Constructor.
Definition at line 48 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, $user_id, and ilConsultationHourAppointments\getManagedUsers().
Here is the call graph for this function:
|
protected |
Show add group form type $ilToolbar type $ilTabs.
Definition at line 341 of file class.ilConsultationHoursGUI.php.
References $tpl, initGroupForm(), and setSubTabs().
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 639 of file class.ilConsultationHoursGUI.php.
References getUserId(), and setSubTabs().
Referenced by confirmDelete(), delete(), and edit().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::assignUsersToAppointment | ( | array | $users, |
$a_app = 0, |
|||
$a_redirect = true |
|||
| ) |
Assign users to an appointment.
| array | $usr_ids |
Definition at line 222 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $booking, $ilCtrl, ilConsultationHourUtils\bookAppointment(), ilBookingEntry\getInstanceByCalendarEntryId(), 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.
| type | $users |
Definition at line 202 of file class.ilConsultationHoursGUI.php.
References $_SESSION, $ilCtrl, assignUsersToAppointment(), and sendInfoAboutUnassignedUsers().
Here is the call graph for this function:| ilConsultationHoursGUI::assignUsersToGroup | ( | array | $usr_ids | ) |
| array | $usr_ids | |
| type | $type |
Definition at line 272 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $booking, $ilCtrl, ilConsultationHourUtils\bookAppointment(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilBookingEntry\getInstanceByCalendarEntryId(), IL_CAL_DAY, IL_CAL_UNIX, ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
Here is the call graph for this function:
|
protected |
Show list of bookings.
Definition at line 525 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourAppointments\getAppointmentIds(), getUserId(), and setSubTabs().
Here is the call graph for this function:| ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 1126 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $tpl, appointmentList(), ilDatePresentation\formatDate(), ilBookingEntry\lookupBookingsForAppointment(), ilUtil\sendFailure(), and ilUtil\sendInfo().
Here is the call graph for this function:
|
protected |
Show delete booking confirmation.
Definition at line 541 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
Here is the call graph for this function:
|
protected |
Confirm delete type $ilCtrl type $ilTabs.
Definition at line 433 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $GLOBALS, $ilCtrl, $tpl, and setSubTabs().
Here is the call graph for this function:
|
protected |
Show delete booking confirmation.
Definition at line 549 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $tpl, ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), ilUtil\sendInfo(), and setSubTabs().
Referenced by confirmDeleteBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Create calendar appointments.
| ilBookingEntry | $booking |
Definition at line 872 of file class.ilConsultationHoursGUI.php.
References ilCalendarCategoryAssignments\addAssignment(), ilCalendarRecurrenceCalculator\calculateDateList(), ilBookingEntry\getId(), getUserId(), ilDateTime\HOUR, IL_CAL_TRANSLATION_SYSTEM, ilCalendarUtil\initDefaultCalendarByType(), ilDateTime\MINUTE, ilCalendarCategory\TYPE_CH, and ilDateList\TYPE_DATETIME.
Referenced by saveSequence().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Create new sequence.
Definition at line 661 of file class.ilConsultationHoursGUI.php.
References IL_CAL_UNIX, and initFormSequence().
Here is the call graph for this function:| ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 1175 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointmentList(), ilConsultationHourUtils\cancelBooking(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Delete booking.
Definition at line 603 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
Here is the call graph for this function:
|
protected |
Delete groups.
Definition at line 464 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $GLOBALS, $ilCtrl, and ilUtil\sendSuccess().
Here is the call graph for this function:| ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 977 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $booking, ilObject\_getAllReferences(), appointmentList(), initFormSequence(), and ilUtil\sendFailure().
Referenced by updateMulti().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Edit group type $ilCtrl.
| ilPropertyFormGUI | $form |
Definition at line 383 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $ilCtrl, $tpl, initGroupForm(), and setSubTabs().
Referenced by updateGroup().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConsultationHoursGUI::executeCommand | ( | ) |
Execute command.
Definition at line 78 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $cmd, $ilCtrl, $ilUser, $ret, $tpl, $user_id, getProfileBackUrl(), and setTabs().
Referenced by searchUsersForAppointments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Build context-sensitive profile back url.
Definition at line 1233 of file class.ilConsultationHoursGUI.php.
References $_GET, and $_REQUEST.
Referenced by executeCommand(), and showProfile().
Here is the caller graph for this function:| ilConsultationHoursGUI::getUserId | ( | ) |
Get user id.
Definition at line 153 of file class.ilConsultationHoursGUI.php.
References $user_id.
Referenced by appointmentList(), bookingList(), createAppointments(), groupList(), initFormSequence(), saveGroup(), saveSequence(), setSubTabs(), setTabs(), updateGroup(), and updateMulti().
Here is the caller graph for this function:
|
protected |
Show consultation hour group type $ilToolbar.
Definition at line 318 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourGroups\getGroupsOfUser(), getUserId(), and setSubTabs().
Here is the call graph for this function:
|
protected |
Init form.
| int | $a_mode |
Definition at line 680 of file class.ilConsultationHoursGUI.php.
References $options, ilConsultationHourGroups\getGroupSelectOptions(), getUserId(), IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, ilYuiUtil\initDomEvent(), ilRecurrenceInputGUI\setEnabledSubForms(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilTextAreaInputGUI\setRows(), ilDurationInputGUI\setShowMinutes(), ilDateTimeInputGUI\setShowTime(), ilTextInputGUI\setSize(), and ilNumberInputGUI\setSize().
Referenced by createSequence(), edit(), saveSequence(), and updateMulti().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init new/update group form.
Definition at line 481 of file class.ilConsultationHoursGUI.php.
References $GLOBALS.
Referenced by addGroup(), editGroup(), saveGroup(), and updateGroup().
Here is the caller graph for this function:
|
protected |
build settings form
Definition at line 1271 of file class.ilConsultationHoursGUI.php.
References $ilDB, $ilUser, ilConsultationHourAppointments\getManager(), and ilFormPropertyGUI\setInfo().
Referenced by settings(), and updateSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| type | $a_send_notification |
Definition at line 612 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $ilCtrl, ilConsultationHourUtils\cancelBooking(), and ilUtil\sendSuccess().
Referenced by deleteBooking().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Save new group.
Definition at line 358 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, addGroup(), getUserId(), initGroupForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Save new sequence.
Definition at line 807 of file class.ilConsultationHoursGUI.php.
References $booking, $ref_id, ilObject\_lookupType(), createAppointments(), ilConsultationHourGroups\getGroupsOfUser(), getUserId(), initFormSequence(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
start searching for users
Definition at line 161 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $_SESSION, $GLOBALS, $ilCtrl, executeCommand(), and ilUtil\sendFailure().
Here is the call graph for this function:
|
protected |
Send info message about unassigned users.
| array | $unassigned |
Definition at line 182 of file class.ilConsultationHoursGUI.php.
References $user_id, ilObjUser\_lookupFullname(), and ilUtil\sendInfo().
Referenced by assignUsersToAppointment(), assignUsersToAppointments(), and assignUsersToGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Set sub tabs type $ilTabs type $ilCtrl.
Definition at line 964 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, and getUserId().
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 |
Set tabs.
Definition at line 940 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $ilUser, $user_id, ilConsultationHourAppointments\getManagedUsers(), and getUserId().
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 1256 of file class.ilConsultationHoursGUI.php.
References $tpl, and initSettingsForm().
Here is the call graph for this function:| ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 1214 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
Here is the call graph for this function:
|
protected |
Update group type $ilCtrl type $tpl type $ilTabs.
Definition at line 404 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $GLOBALS, $ilCtrl, $tpl, editGroup(), getUserId(), initGroupForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Update multiple sequence items.
Definition at line 1036 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $location, $ref_id, ilObject\_lookupType(), edit(), ilConsultationHourGroups\getCountGroupsOfUser(), ilBookingEntry\getInstanceByCalendarEntryId(), getUserId(), initFormSequence(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 1295 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $ilDB, $ilUser, $tpl, initSettingsForm(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConsultationHourAppointments\setManager().
Here is the call graph for this function:
|
protected |
Definition at line 43 of file class.ilConsultationHoursGUI.php.
Referenced by assignUsersToAppointment(), assignUsersToGroup(), delete(), edit(), saveSequence(), and updateMulti().
|
protected |
Definition at line 41 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 40 of file class.ilConsultationHoursGUI.php.
Referenced by __construct(), delete(), executeCommand(), getUserId(), sendInfoAboutUnassignedUsers(), setTabs(), and showProfile().
| const ilConsultationHoursGUI::MODE_CREATE = 1 |
Definition at line 36 of file class.ilConsultationHoursGUI.php.
| const ilConsultationHoursGUI::MODE_MULTI = 3 |
Definition at line 38 of file class.ilConsultationHoursGUI.php.
| const ilConsultationHoursGUI::MODE_UPDATE = 2 |
Definition at line 37 of file class.ilConsultationHoursGUI.php.