|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Consultation hours editor. More...
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:
|
protected |
Show add group form @global type $ilToolbar @global type $ilTabs.
Definition at line 343 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 641 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 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 224 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 204 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 274 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 527 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 1138 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 543 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
Here is the call graph for this function:
|
protected |
Confirm delete @global type $ilCtrl @global type $ilTabs.
Definition at line 435 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 551 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 874 of file class.ilConsultationHoursGUI.php.
References $booking, 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 caller graph for this function:
|
protected |
Create new sequence.
Definition at line 663 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 1187 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 605 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
Here is the call graph for this function:
|
protected |
Delete groups.
Definition at line 466 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 989 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 @global type $ilCtrl.
| ilPropertyFormGUI | $form |
Definition at line 385 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 80 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $cmd, $ilCtrl, $ilUser, $ret, $tpl, 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 1245 of file class.ilConsultationHoursGUI.php.
References $_GET, $_REQUEST, and $url.
Referenced by executeCommand(), and showProfile().
Here is the caller graph for this function:| ilConsultationHoursGUI::getUserId | ( | ) |
Get user id.
Definition at line 155 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 @global type $ilToolbar.
Definition at line 320 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 682 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 caller graph for this function:
|
protected |
Init new/update group form.
Definition at line 483 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 1283 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 caller graph for this function:
|
protected |
| type | $a_send_notification |
Definition at line 614 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 360 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 809 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 163 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 184 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 @global type $ilTabs @global type $ilCtrl.
Definition at line 976 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 952 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 1268 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 1226 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
Here is the call graph for this function:
|
protected |
Update group @global type $ilCtrl @global type $tpl @global type $ilTabs.
Definition at line 406 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 1048 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 1307 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 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.