ILIAS
Release_4_4_x_branch Revision 61816
|
Consultation hours editor. More...
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().
|
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().
|
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().
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().
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().
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().
|
protected |
Show list of bookings.
Definition at line 525 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourAppointments\getAppointmentIds(), getUserId(), and setSubTabs().
ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 1125 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $tpl, appointmentList(), ilDatePresentation\formatDate(), ilBookingEntry\lookupBookingsForAppointment(), ilUtil\sendFailure(), and ilUtil\sendInfo().
|
protected |
Show delete booking confirmation.
Definition at line 541 of file class.ilConsultationHoursGUI.php.
References confirmRejectBooking().
|
protected |
Confirm delete type $ilCtrl type $ilTabs.
Definition at line 433 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $GLOBALS, $ilCtrl, $tpl, and setSubTabs().
|
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().
|
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().
|
protected |
Create new sequence.
Definition at line 661 of file class.ilConsultationHoursGUI.php.
References IL_CAL_UNIX, and initFormSequence().
ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 1174 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointmentList(), ilConsultationHourUtils\cancelBooking(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete booking.
Definition at line 603 of file class.ilConsultationHoursGUI.php.
References rejectBooking().
|
protected |
Delete groups.
Definition at line 464 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $GLOBALS, $ilCtrl, and ilUtil\sendSuccess().
ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 976 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $booking, ilObject\_getAllReferences(), appointmentList(), initFormSequence(), and ilUtil\sendFailure().
Referenced by updateMulti().
|
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().
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().
|
protected |
Build context-sensitive profile back url.
Definition at line 1232 of file class.ilConsultationHoursGUI.php.
References $_GET, and $_REQUEST.
Referenced by executeCommand(), and showProfile().
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().
|
protected |
Show consultation hour group type $ilToolbar.
Definition at line 318 of file class.ilConsultationHoursGUI.php.
References $tpl, ilConsultationHourGroups\getGroupsOfUser(), getUserId(), and setSubTabs().
|
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().
|
protected |
Init new/update group form.
Definition at line 481 of file class.ilConsultationHoursGUI.php.
References $GLOBALS.
Referenced by addGroup(), editGroup(), saveGroup(), and updateGroup().
|
protected |
build settings form
Definition at line 1270 of file class.ilConsultationHoursGUI.php.
References $ilUser, ilConsultationHourAppointments\getManager(), and ilFormPropertyGUI\setInfo().
Referenced by settings(), and updateSettings().
|
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().
|
protected |
Save new group.
Definition at line 358 of file class.ilConsultationHoursGUI.php.
References $GLOBALS, addGroup(), getUserId(), initGroupForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
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().
|
protected |
start searching for users
Definition at line 161 of file class.ilConsultationHoursGUI.php.
References $_REQUEST, $_SESSION, $GLOBALS, $ilCtrl, executeCommand(), and ilUtil\sendFailure().
|
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().
|
protected |
Set sub tabs type $ilTabs type $ilCtrl.
Definition at line 963 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, and getUserId().
Referenced by addGroup(), appointmentList(), bookingList(), confirmDeleteGroup(), confirmRejectBooking(), editGroup(), and groupList().
|
protected |
Set tabs.
Definition at line 939 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $ilUser, $user_id, ilConsultationHourAppointments\getManagedUsers(), and getUserId().
Referenced by executeCommand().
ilConsultationHoursGUI::settings | ( | ) |
display settings gui
Definition at line 1255 of file class.ilConsultationHoursGUI.php.
References $tpl, and initSettingsForm().
ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 1213 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
|
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().
|
protected |
Update multiple sequence items.
Definition at line 1035 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().
ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 1294 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $ilUser, $tpl, initSettingsForm(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConsultationHourAppointments\setManager().
|
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.