ILIAS
Release_4_2_x_branch Revision 61807
|
Consultation hours editor. More...
Public Member Functions | |
__construct () | |
Constructor. | |
executeCommand () | |
Execute command. | |
getUserId () | |
Get user id. | |
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 | |
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. | |
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
Definition at line 33 of file class.ilConsultationHoursGUI.php.
ilConsultationHoursGUI::__construct | ( | ) |
Constructor.
Definition at line 47 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $lng, $tpl, $user_id, and ilConsultationHourAppointments\getManagedUsers().
|
protected |
Show settings of consultation hours.
Definition at line 118 of file class.ilConsultationHoursGUI.php.
References getUserId().
Referenced by confirmDelete(), delete(), and edit().
ilConsultationHoursGUI::confirmDelete | ( | ) |
confirm delete for multiple entries
Definition at line 538 of file class.ilConsultationHoursGUI.php.
References $_POST, $tpl, appointmentList(), ilDatePresentation\formatDate(), and ilUtil\sendFailure().
|
protected |
Create calendar appointments.
ilBookingEntry | $booking |
Definition at line 321 of file class.ilConsultationHoursGUI.php.
References ilCalendarCategoryAssignments\addAssignment(), ilCalendarRecurrenceCalculator\calculateDateList(), ilBookingEntry\getId(), getUserId(), IL_CAL_TRANSLATION_SYSTEM, IL_CAL_UNIX, ilCalendarUtil\initDefaultCalendarByType(), ilDateTime\MINUTE, ilCalendarCategory\TYPE_CH, and ilDateList\TYPE_DATETIME.
Referenced by saveSequence().
|
protected |
Create new sequence.
Definition at line 135 of file class.ilConsultationHoursGUI.php.
References IL_CAL_UNIX, and initFormSequence().
ilConsultationHoursGUI::delete | ( | ) |
delete multiple entries
Definition at line 573 of file class.ilConsultationHoursGUI.php.
References $_POST, $tpl, $user_id, ilCalendarCategoryAssignments\_deleteByAppointmentId(), appointmentList(), ilBookingEntry\getInstanceByCalendarEntryId(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilConsultationHoursGUI::edit | ( | ) |
Edit multiple sequence items.
Definition at line 405 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, appointmentList(), initFormSequence(), and ilUtil\sendFailure().
Referenced by updateMulti().
ilConsultationHoursGUI::executeCommand | ( | ) |
Execute command.
Definition at line 77 of file class.ilConsultationHoursGUI.php.
References $cmd, $ilCtrl, $ret, $tpl, $user_id, getProfileBackUrl(), and setTabs().
|
protected |
Build context-sensitive profile back url.
Definition at line 632 of file class.ilConsultationHoursGUI.php.
References $_GET, and $_REQUEST.
Referenced by executeCommand(), and showProfile().
ilConsultationHoursGUI::getUserId | ( | ) |
Get user id.
Definition at line 108 of file class.ilConsultationHoursGUI.php.
References $user_id.
Referenced by appointmentList(), createAppointments(), saveSequence(), setTabs(), and updateMulti().
|
protected |
Init form.
int | $a_mode |
Definition at line 154 of file class.ilConsultationHoursGUI.php.
References IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, ilYuiUtil\initDomEvent(), ilRecurrenceInputGUI\setEnabledSubForms(), ilFormPropertyGUI\setInfo(), ilTextAreaInputGUI\setRows(), ilDurationInputGUI\setShowMinutes(), ilDateTimeInputGUI\setShowTime(), ilTextInputGUI\setSize(), and ilNumberInputGUI\setSize().
Referenced by createSequence(), edit(), saveSequence(), and updateMulti().
|
protected |
build settings form
Definition at line 669 of file class.ilConsultationHoursGUI.php.
References $ilDB, ilConsultationHourAppointments\getManager(), and ilFormPropertyGUI\setInfo().
Referenced by settings(), and updateSettings().
|
protected |
Save new sequence.
Definition at line 270 of file class.ilConsultationHoursGUI.php.
References $booking, createAppointments(), getUserId(), initFormSequence(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Set tabs.
Definition at line 383 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $user_id, ilConsultationHourAppointments\getManagedUsers(), and getUserId().
Referenced by executeCommand().
ilConsultationHoursGUI::settings | ( | ) |
display settings gui
Definition at line 655 of file class.ilConsultationHoursGUI.php.
References $tpl, and initSettingsForm().
ilConsultationHoursGUI::showProfile | ( | ) |
show public profile of given user
Definition at line 613 of file class.ilConsultationHoursGUI.php.
References $_GET, $ilCtrl, $tpl, $user_id, and getProfileBackUrl().
|
protected |
Update multiple sequence items.
Definition at line 452 of file class.ilConsultationHoursGUI.php.
References $_POST, $booking, $location, $title, edit(), ilBookingEntry\getInstanceByCalendarEntryId(), getUserId(), initFormSequence(), ilBookingEntry\removeObsoleteEntries(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilConsultationHoursGUI::updateSettings | ( | ) |
save settings
Definition at line 693 of file class.ilConsultationHoursGUI.php.
References $ilCtrl, $ilDB, $tpl, initSettingsForm(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConsultationHourAppointments\setManager().
|
protected |
Definition at line 42 of file class.ilConsultationHoursGUI.php.
Referenced by edit(), saveSequence(), and updateMulti().
|
protected |
Definition at line 40 of file class.ilConsultationHoursGUI.php.
|
protected |
Definition at line 39 of file class.ilConsultationHoursGUI.php.
Referenced by __construct(), delete(), executeCommand(), getUserId(), setTabs(), and showProfile().
const ilConsultationHoursGUI::MODE_CREATE = 1 |
Definition at line 35 of file class.ilConsultationHoursGUI.php.
const ilConsultationHoursGUI::MODE_MULTI = 3 |
Definition at line 37 of file class.ilConsultationHoursGUI.php.
const ilConsultationHoursGUI::MODE_UPDATE = 2 |
Definition at line 36 of file class.ilConsultationHoursGUI.php.