ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Consultation hours editor. More...
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 type $ilToolbar. More... | |
addGroup (ilPropertyFormGUI $form=null) | |
Show add group form type $ilToolbar type $ilTabs. More... | |
saveGroup () | |
Save new group. More... | |
editGroup (ilPropertyFormGUI $form=null) | |
Edit group type $ilCtrl. More... | |
updateGroup () | |
Update group type $ilCtrl type $tpl type $ilTabs. More... | |
confirmDeleteGroup () | |
Confirm delete type $ilCtrl 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 type $ilTabs type $ilCtrl. More... | |
createNewBookingEntry (\ilPropertyFormGUI $validate_form) | |
rewriteBookingIdsForAppointments (\ilBookingEntry $booking, $appointments, \ilPropertyFormGUI $form) | |
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.
: 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, $DIC, $ilCtrl, $ilUser, $lng, $tpl, $user_id, and ilConsultationHourAppointments\getManagedUsers().
|
protected |
Show add group form type $ilToolbar type $ilTabs.
Definition at line 348 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $tpl, initGroupForm(), and setSubTabs().
Referenced by saveGroup().
|
protected |
Show settings of consultation hours.
Definition at line 658 of file class.ilConsultationHoursGUI.php.
References $DIC, $tbl, getUserId(), and setSubTabs().
Referenced by confirmDelete(), delete(), and edit().
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, $DIC, $GLOBALS, $ilCtrl, $user, ilConsultationHourUtils\bookAppointment(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\lookupBookingsOfUser(), ilUtil\sendFailure(), and sendInfoAboutUnassignedUsers().
Referenced by assignUsersToAppointments().
ilConsultationHoursGUI::assignUsersToAppointments | ( | array | $users | ) |
Assign users to multiple appointments.
type | $users |
Definition at line 205 of file class.ilConsultationHoursGUI.php.
References $_SESSION, $DIC, $ilCtrl, assignUsersToAppointment(), and sendInfoAboutUnassignedUsers().
ilConsultationHoursGUI::assignUsersToGroup | ( | array | $usr_ids | ) |
array | $usr_ids | |
type | $type |
Definition at line 274 of file class.ilConsultationHoursGUI.php.
References $booking, $DIC, $ilCtrl, $user, $users, ilConsultationHourUtils\bookAppointment(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilBookingEntry\getInstanceByCalendarEntryId(), IL_CAL_DAY, IL_CAL_UNIX, ilBookingEntry\lookupBookingsOfUser(), and sendInfoAboutUnassignedUsers().
|
protected |
Show list of bookings.
Definition at line 540 of file class.ilConsultationHoursGUI.php.
References $DIC, $tpl, ilConsultationHourAppointments\getAppointmentIds(), getUserId(), and setSubTabs().
ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 1170 of file class.ilConsultationHoursGUI.php.
References $DIC, $tpl, appointmentList(), ilDatePresentation\formatDate(), ilBookingEntry\lookupBookingsForAppointment(), ilUtil\sendFailure(), and ilUtil\sendInfo().
|
protected |
Show delete booking confirmation.
Definition at line 563 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
|
protected |
Confirm delete type $ilCtrl type $ilTabs.
Definition at line 447 of file class.ilConsultationHoursGUI.php.
References $DIC, $GLOBALS, $ilCtrl, $tpl, and setSubTabs().
|
protected |
Show delete booking confirmation.
Definition at line 571 of file class.ilConsultationHoursGUI.php.
References $DIC, $tpl, ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), ilUtil\sendInfo(), and setSubTabs().
Referenced by confirmDeleteBooking().
|
protected |
Create calendar appointments.
ilBookingEntry | $booking |
Definition at line 888 of file class.ilConsultationHoursGUI.php.
References $end, $i, $start, ilCalendarCategoryAssignments\addAssignment(), ilCalendarRecurrenceCalculator\calculateDateList(), ilBookingEntry\getId(), getUserId(), ilDateTime\HOUR, IL_CAL_TRANSLATION_SYSTEM, ilCalendarUtil\initDefaultCalendarByType(), ilDateTime\MINUTE, ilCalendarCategory\TYPE_CH, ilDateList\TYPE_DATETIME, and ilDateTime\YEAR.
Referenced by saveSequence().
|
protected |
ilPropertyFormGUI | $validated_form |
Definition at line 1062 of file class.ilConsultationHoursGUI.php.
References $booking, $DIC, $type, ilObject\_lookupType(), ilConsultationHourGroups\getCountGroupsOfUser(), getUserId(), and ilUtil\sendFailure().
Referenced by updateMulti().
|
protected |
Create new sequence.
Definition at line 684 of file class.ilConsultationHoursGUI.php.
References IL_CAL_UNIX, and initFormSequence().
ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 1217 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointmentList(), ilConsultationHourUtils\cancelBooking(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\removeObsoleteEntries(), and ilUtil\sendFailure().
|
protected |
Delete booking.
Definition at line 624 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
|
protected |
Delete groups.
Definition at line 481 of file class.ilConsultationHoursGUI.php.
References $DIC, $GLOBALS, and $ilCtrl.
ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 1005 of file class.ilConsultationHoursGUI.php.
References $booking, $DIC, ilObject\_getAllReferences(), appointmentList(), initFormSequence(), and ilUtil\sendFailure().
Referenced by updateMulti().
|
protected |
Edit group type $ilCtrl.
ilPropertyFormGUI | $form |
Definition at line 391 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $ilCtrl, $tpl, initGroupForm(), and setSubTabs().
Referenced by updateGroup().
ilConsultationHoursGUI::executeCommand | ( | ) |
Execute command.
Definition at line 80 of file class.ilConsultationHoursGUI.php.
References $DIC, $ilCtrl, $ilUser, $ret, $tpl, $user_id, getProfileBackUrl(), and setTabs().
Referenced by searchUsersForAppointments().
|
protected |
Build context-sensitive profile back url.
Definition at line 1275 of file class.ilConsultationHoursGUI.php.
Referenced by executeCommand(), and showProfile().
ilConsultationHoursGUI::getUserId | ( | ) |
Get user id.
Definition at line 156 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 type $ilToolbar.
Definition at line 318 of file class.ilConsultationHoursGUI.php.
References $DIC, $tpl, ilConsultationHourGroups\getGroupsOfUser(), getUserId(), and setSubTabs().
|
protected |
Init form.
int | $a_mode |
Definition at line 704 of file class.ilConsultationHoursGUI.php.
References PHPMailer\PHPMailer\$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().
|
protected |
Init new/update group form.
Definition at line 499 of file class.ilConsultationHoursGUI.php.
References $form, $GLOBALS, and $title.
Referenced by addGroup(), editGroup(), saveGroup(), and updateGroup().
|
protected |
build settings form
Definition at line 1314 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $ilDB, $ilUser, ilConsultationHourAppointments\getManager(), and ilFormPropertyGUI\setInfo().
Referenced by settings(), and updateSettings().
|
protected |
type | $a_send_notification |
Definition at line 633 of file class.ilConsultationHoursGUI.php.
References $DIC, $ilCtrl, and ilConsultationHourUtils\cancelBooking().
Referenced by deleteBooking().
|
protected |
ilBookingEntry | $booking | |
int[] | $appointments |
Definition at line 1104 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 367 of file class.ilConsultationHoursGUI.php.
References $form, $GLOBALS, addGroup(), getUserId(), initGroupForm(), and ilUtil\sendFailure().
|
protected |
Save new sequence.
Definition at line 828 of file class.ilConsultationHoursGUI.php.
References $booking, $DIC, $type, ilObject\_lookupType(), createAppointments(), ilConsultationHourGroups\getGroupsOfUser(), getUserId(), initFormSequence(), and ilUtil\sendFailure().
|
protected |
start searching for users
Definition at line 164 of file class.ilConsultationHoursGUI.php.
References $_SESSION, $DIC, $GLOBALS, $ilCtrl, executeCommand(), and ilUtil\sendFailure().
|
protected |
Send info message about unassigned users.
array | $unassigned |
Definition at line 187 of file class.ilConsultationHoursGUI.php.
References $user_id, $users, ilObjUser\_lookupFullname(), and ilUtil\sendInfo().
Referenced by assignUsersToAppointment(), assignUsersToAppointments(), and assignUsersToGroup().
|
protected |
Set sub tabs type $ilTabs type $ilCtrl.
Definition at line 989 of file class.ilConsultationHoursGUI.php.
References $DIC, $ilCtrl, and getUserId().
Referenced by addGroup(), appointmentList(), bookingList(), confirmDeleteGroup(), confirmRejectBooking(), editGroup(), and groupList().
|
protected |
Set tabs.
Definition at line 962 of file class.ilConsultationHoursGUI.php.
References $DIC, $ilCtrl, $ilUser, $login, $user_id, ilConsultationHourAppointments\getManagedUsers(), and getUserId().
Referenced by executeCommand().
ilConsultationHoursGUI::settings | ( | ) |
display settings gui
Definition at line 1295 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $tpl, and initSettingsForm().
ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 1252 of file class.ilConsultationHoursGUI.php.
References $_GET, $DIC, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
|
protected |
Update group type $ilCtrl type $tpl type $ilTabs.
Definition at line 415 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $GLOBALS, $ilCtrl, $tpl, editGroup(), getUserId(), initGroupForm(), and ilUtil\sendFailure().
|
protected |
Update multiple sequence items.
Definition at line 1139 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $DIC, createNewBookingEntry(), edit(), initFormSequence(), ilBookingEntry\removeObsoleteEntries(), and rewriteBookingIdsForAppointments().
ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 1341 of file class.ilConsultationHoursGUI.php.
References $DIC, $form, $ilCtrl, $ilDB, $ilUser, $tpl, initSettingsForm(), ilUtil\sendFailure(), and ilConsultationHourAppointments\setManager().
|
protected |
Definition at line 45 of file class.ilConsultationHoursGUI.php.
Referenced by assignUsersToAppointment(), assignUsersToGroup(), createNewBookingEntry(), 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(), executeCommand(), 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.
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.