| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
Consultation hours editor. More...
 Collaboration diagram for ilConsultationHoursGUI:
 Collaboration diagram for ilConsultationHoursGUI:| Public Member Functions | |
| __construct () | |
| Constructor.  More... | |
| executeCommand () | |
| Execute command.  More... | |
| getUserId () | |
| Get user id.  More... | |
| assignUsersToAppointments (array $users) | |
| Assign users to multiple appointments.  More... | |
| assignUsersToAppointment (array $users, $a_app=0, $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... | |
| Data Fields | |
| const | MODE_CREATE = 1 | 
| const | MODE_UPDATE = 2 | 
| const | MODE_MULTI = 3 | 
| const | MAX_APPOINTMENTS_PER_SEQUENCE = 1000 | 
| Protected Member Functions | |
| searchUsersForAppointments () | |
| start searching for users  More... | |
| sendInfoAboutUnassignedUsers ($unassigned) | |
| Send info message about unassigned users.  More... | |
| groupList () | |
| Show consultation hour group @global type $ilToolbar.  More... | |
| addGroup (ilPropertyFormGUI $form=null) | |
| Show add group form @global type $ilToolbar @global type $ilTabs.  More... | |
| saveGroup () | |
| Save new group.  More... | |
| editGroup (ilPropertyFormGUI $form=null) | |
| Edit group @global type $ilCtrl.  More... | |
| updateGroup () | |
| Update group @global type $ilCtrl @global type $tpl @global type $ilTabs.  More... | |
| confirmDeleteGroup () | |
| Confirm delete @global type $ilCtrl @global type $ilTabs.  More... | |
| deleteGroup () | |
| Delete groups.  More... | |
| initGroupForm ($a_group_id=0) | |
| Init new/update group form.  More... | |
| bookingList () | |
| Show list of bookings.  More... | |
| confirmDeleteBooking () | |
| Show delete booking confirmation.  More... | |
| confirmRejectBooking ($a_send_notification=true) | |
| Show delete booking confirmation.  More... | |
| deleteBooking () | |
| Delete booking.  More... | |
| rejectBooking ($a_send_notification=true) | |
| appointmentList () | |
| Show settings of consultation hours.  More... | |
| createSequence () | |
| Create new sequence.  More... | |
| initFormSequence ($a_mode) | |
| Init form.  More... | |
| saveSequence () | |
| Save new sequence.  More... | |
| createAppointments (ilBookingEntry $booking) | |
| Create calendar appointments.  More... | |
| setTabs () | |
| Set tabs.  More... | |
| setSubTabs () | |
| Set sub tabs @global type $ilTabs @global type $ilCtrl.  More... | |
| updateMulti () | |
| Update multiple sequence items.  More... | |
| getProfileBackUrl () | |
| Build context-sensitive profile back url.  More... | |
| initSettingsForm () | |
| build settings form  More... | |
| Protected Attributes | |
| $user_id | |
| $ctrl | |
| $booking = null | |
Consultation hours editor.
@ilCtrl_Calls: ilConsultationHoursGUI: ilPublicUserProfileGUI, ilRepositorySearchGUI
Definition at line 34 of file class.ilConsultationHoursGUI.php.
| ilConsultationHoursGUI::__construct | ( | ) | 
Constructor.
Definition at line 50 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, $user_id, and ilConsultationHourAppointments\getManagedUsers().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Show add group form @global type $ilToolbar @global type $ilTabs.
Definition at line 345 of file class.ilConsultationHoursGUI.php.
References $tpl, initGroupForm(), and setSubTabs().
Referenced by saveGroup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Show settings of consultation hours.
Definition at line 643 of file class.ilConsultationHoursGUI.php.
References $tbl, getUserId(), and setSubTabs().
Referenced by confirmDelete(), delete(), and edit().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 226 of file class.ilConsultationHoursGUI.php.
References $booking, $ilCtrl, ilConsultationHourUtils\bookAppointment(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
Referenced by assignUsersToAppointments().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 206 of file class.ilConsultationHoursGUI.php.
References $_SESSION, $ilCtrl, assignUsersToAppointment(), and sendInfoAboutUnassignedUsers().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::assignUsersToGroup | ( | array | $usr_ids | ) | 
| array | $usr_ids | |
| type | $type | 
Definition at line 276 of file class.ilConsultationHoursGUI.php.
References $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:
 Here is the call graph for this function:| 
 | protected | 
Show list of bookings.
Definition at line 529 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourAppointments\getAppointmentIds(), getUserId(), and setSubTabs().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::confirmDelete | ( | ) | 
confirm delete for multiple entries
Definition at line 1140 of file class.ilConsultationHoursGUI.php.
References $tpl, appointmentList(), ilDatePresentation\formatDate(), ilBookingEntry\lookupBookingsForAppointment(), ilUtil\sendFailure(), and ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Show delete booking confirmation.
Definition at line 545 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Confirm delete @global type $ilCtrl @global type $ilTabs.
Definition at line 437 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, $ilCtrl, $tpl, and setSubTabs().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Show delete booking confirmation.
Definition at line 553 of file class.ilConsultationHoursGUI.php.
References $tpl, ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), ilUtil\sendInfo(), and setSubTabs().
Referenced by confirmDeleteBooking().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Create calendar appointments.
| ilBookingEntry | $booking | 
Definition at line 876 of file class.ilConsultationHoursGUI.php.
References $booking, $start, getUserId(), ilDateTime\HOUR, IL_CAL_TRANSLATION_SYSTEM, ilCalendarUtil\initDefaultCalendarByType(), ilDateTime\MINUTE, ilCalendarCategory\TYPE_CH, ilDateList\TYPE_DATETIME, and ilDateTime\YEAR.
Referenced by saveSequence().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Create new sequence.
Definition at line 665 of file class.ilConsultationHoursGUI.php.
References date, IL_CAL_UNIX, and initFormSequence().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::delete | ( | ) | 
delete multiple entries
Definition at line 1189 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:
 Here is the call graph for this function:| 
 | protected | 
Delete booking.
Definition at line 607 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Delete groups.
Definition at line 468 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, $ilCtrl, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::edit | ( | ) | 
Edit multiple sequence items.
Definition at line 991 of file class.ilConsultationHoursGUI.php.
References $booking, ilObject\_getAllReferences(), appointmentList(), initFormSequence(), and ilUtil\sendFailure().
Referenced by updateMulti().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Edit group @global type $ilCtrl.
| ilPropertyFormGUI | $form | 
Definition at line 387 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $tpl, initGroupForm(), and setSubTabs().
Referenced by updateGroup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilConsultationHoursGUI::executeCommand | ( | ) | 
Execute command.
Definition at line 80 of file class.ilConsultationHoursGUI.php.
References $cmd, $ilCtrl, $ilUser, $ret, $tpl, getProfileBackUrl(), and setTabs().
Referenced by searchUsersForAppointments().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Build context-sensitive profile back url.
Definition at line 1247 of file class.ilConsultationHoursGUI.php.
Referenced by executeCommand(), and showProfile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilConsultationHoursGUI::getUserId | ( | ) | 
Get user id.
Definition at line 157 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:
 Here is the caller graph for this function:| 
 | protected | 
Show consultation hour group @global type $ilToolbar.
Definition at line 322 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourGroups\getGroupsOfUser(), getUserId(), and setSubTabs().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Init form.
| int | $a_mode | 
Definition at line 684 of file class.ilConsultationHoursGUI.php.
References $options, ilConsultationHourGroups\getGroupSelectOptions(), getUserId(), IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, ilYuiUtil\initDomEvent(), MODE_CREATE, and MODE_MULTI.
Referenced by createSequence(), edit(), saveSequence(), and updateMulti().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Init new/update group form.
Definition at line 485 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, and $title.
Referenced by addGroup(), editGroup(), saveGroup(), and updateGroup().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
build settings form
Definition at line 1285 of file class.ilConsultationHoursGUI.php.
References $ilDB, $ilUser, and ilConsultationHourAppointments\getManager().
Referenced by settings(), and updateSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
| type | $a_send_notification | 
Definition at line 616 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, ilConsultationHourUtils\cancelBooking(), and ilUtil\sendSuccess().
Referenced by deleteBooking().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Save new group.
Definition at line 362 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, addGroup(), getUserId(), initGroupForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Save new sequence.
Definition at line 811 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:
 Here is the call graph for this function:| 
 | protected | 
start searching for users
Definition at line 165 of file class.ilConsultationHoursGUI.php.
References $_SESSION, $GLOBALS, $ilCtrl, executeCommand(), and ilUtil\sendFailure().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Send info message about unassigned users.
| array | $unassigned | 
Definition at line 186 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set sub tabs @global type $ilTabs @global type $ilCtrl.
Definition at line 978 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set tabs.
Definition at line 954 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilConsultationHoursGUI::settings | ( | ) | 
display settings gui
Definition at line 1270 of file class.ilConsultationHoursGUI.php.
References $tpl, and initSettingsForm().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::showProfile | ( | ) | 
show public profile of given user
Definition at line 1228 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Update group @global type $ilCtrl @global type $tpl @global type $ilTabs.
Definition at line 408 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, $ilCtrl, $tpl, editGroup(), getUserId(), initGroupForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Update multiple sequence items.
Definition at line 1050 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $location, $ref_id, $title, ilObject\_lookupType(), edit(), ilConsultationHourGroups\getCountGroupsOfUser(), ilBookingEntry\getInstanceByCalendarEntryId(), getUserId(), initFormSequence(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilConsultationHoursGUI::updateSettings | ( | ) | 
save settings
Definition at line 1309 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:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 45 of file class.ilConsultationHoursGUI.php.
Referenced by assignUsersToAppointment(), assignUsersToGroup(), createAppointments(), delete(), edit(), saveSequence(), and updateMulti().
| 
 | protected | 
Definition at line 43 of file class.ilConsultationHoursGUI.php.
| 
 | protected | 
Definition at line 42 of file class.ilConsultationHoursGUI.php.
Referenced by __construct(), delete(), getUserId(), sendInfoAboutUnassignedUsers(), setTabs(), and showProfile().
| const ilConsultationHoursGUI::MAX_APPOINTMENTS_PER_SEQUENCE = 1000 | 
Definition at line 40 of file class.ilConsultationHoursGUI.php.
| const ilConsultationHoursGUI::MODE_CREATE = 1 | 
Definition at line 36 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence().
| const ilConsultationHoursGUI::MODE_MULTI = 3 | 
Definition at line 38 of file class.ilConsultationHoursGUI.php.
Referenced by initFormSequence().
| const ilConsultationHoursGUI::MODE_UPDATE = 2 | 
Definition at line 37 of file class.ilConsultationHoursGUI.php.