ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilDate $seed, int $presentation_type) | |
setConsulationHoursUserId (int $a_user_id) | |
getConsultationHoursUserId () | |
initialize (int $a_calendar_presentation_type) | |
getCurrentApp () | |
getEvents () | |
getDatesForItem ($item) | |
getModalForApp () | |
Get modal for appointment (see similar code in ilCalendarBlockGUI) More... | |
getAppointmentShyButton (ilCalendarEntry $a_calendar_entry, string $a_dstart, string $a_title_forced="") | |
getActivePlugins (string $a_slot_id) | |
getModalTitleByPlugins (string $a_current_title) | |
getContentByPlugins (ilCalendarEntry $a_cal_entry, int $a_start_date, string $a_content, ilTemplate $a_tpl) | |
addToolbarFileDownload () | |
Add download link to toolbar. More... | |
downloadFiles () | |
Download files related to the appointments showed in the current calendar view (day,week,month,list). More... | |
getBucketTitle () | |
get proper label to add in the background task popover More... | |
countEventsInView () | |
get the events starting between 2 dates based in seed + view options. More... | |
Data Fields | |
const | CAL_PRESENTATION_UNDEFINED = 0 |
const | CAL_PRESENTATION_DAY = 1 |
const | CAL_PRESENTATION_WEEK = 2 |
const | CAL_PRESENTATION_MONTH = 3 |
const | CAL_PRESENTATION_AGENDA_LIST = 9 |
Protected Member Functions | |
initAppointmentIdFromQuery () | |
initInitialDateFromQuery () | |
initInitialDateTimeFromQuery () | |
initBookingUserFromQuery () | |
Protected Attributes | |
int | $presentation_type = self::CAL_PRESENTATION_UNDEFINED |
bool | $view_with_appointments = false |
ilDate | $seed |
int | $ch_user_id = 0 |
string | $period_end_day = null |
Factory | $ui_factory |
Renderer | $ui_renderer |
ilCtrlInterface | $ctrl |
ilToolbarGUI | $toolbar |
ilLogger | $logger |
ILIAS DI UIServices | $ui |
ilLanguage | $lng |
ilObjUser | $user |
ilTemplate | $tpl |
ilGlobalTemplateInterface | $main_tpl |
ilComponentFactory | $component_factory |
ilTabsGUI | $tabs_gui |
RefineryFactory | $refinery |
HttpServices | $http |
Definition at line 33 of file class.ilCalendarViewGUI.php.
ilCalendarViewGUI::__construct | ( | ilDate | $seed, |
int | $presentation_type | ||
) |
Definition at line 62 of file class.ilCalendarViewGUI.php.
References $seed, and initialize().
ilCalendarViewGUI::addToolbarFileDownload | ( | ) |
Add download link to toolbar.
Definition at line 388 of file class.ilCalendarViewGUI.php.
References $ctrl, Vendor\Package\$f, $lng, ILIAS\LTI\ToolProvider\$settings, $toolbar, $ui_factory, ilCalendarSettings\_getInstance(), ilToolbarGUI\addComponent(), ilToolbarGUI\addSeparator(), countEventsInView(), ilCtrlInterface\getLinkTarget(), and ILIAS\Repository\lng().
ilCalendarViewGUI::countEventsInView | ( | ) |
get the events starting between 2 dates based in seed + view options.
Definition at line 480 of file class.ilCalendarViewGUI.php.
References $seed, getEvents(), ilCalendarAgendaListGUI\getPeriod(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_MONTH, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, and ilCalendarAgendaListGUI\PERIOD_WEEK.
Referenced by addToolbarFileDownload().
ilCalendarViewGUI::downloadFiles | ( | ) |
Download files related to the appointments showed in the current calendar view (day,week,month,list).
Not modals
Definition at line 417 of file class.ilCalendarViewGUI.php.
References ILIAS\Repository\ctrl(), getBucketTitle(), getEvents(), ILIAS\Repository\lng(), ilDownloadFilesBackgroundTask\setBucketTitle(), and ILIAS\Repository\user().
ilCalendarViewGUI::getActivePlugins | ( | string | $a_slot_id | ) |
string | $a_slot_id |
Definition at line 322 of file class.ilCalendarViewGUI.php.
Referenced by getContentByPlugins(), getModalTitleByPlugins(), and ilCalendarAgendaListGUI\getPluginAgendaItem().
ilCalendarViewGUI::getAppointmentShyButton | ( | ilCalendarEntry | $a_calendar_entry, |
string | $a_dstart, | ||
string | $a_title_forced = "" |
||
) |
ilCalendarEntry | $a_calendar_entry | |
string | $a_dstart | |
string | $a_title_forced | //used in plugins to rename the shy button title. |
Definition at line 289 of file class.ilCalendarViewGUI.php.
References $url, ILIAS\Repository\ctrl(), getConsultationHoursUserId(), ilCalendarEntry\getEntryId(), ilCalendarEntry\getPresentationTitle(), IL_CAL_DATE, initAppointmentIdFromQuery(), and initInitialDateTimeFromQuery().
Referenced by getContentByPlugins(), ilCalendarWeekGUI\showAppointment(), ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarWeekGUI\showFulldayAppointment(), and ilCalendarDayGUI\showFulldayAppointment().
ilCalendarViewGUI::getBucketTitle | ( | ) |
get proper label to add in the background task popover
Definition at line 431 of file class.ilCalendarViewGUI.php.
References ilCalendarUtil\_buildWeekDayList(), ilCalendarUserSettings\_getInstanceByUserId(), IL_CAL_DATE, IL_CAL_FKT_DATE, ILIAS\Repository\lng(), ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, ilCalendarAgendaListGUI\PERIOD_WEEK, and ILIAS\Repository\user().
Referenced by downloadFiles().
ilCalendarViewGUI::getConsultationHoursUserId | ( | ) |
Definition at line 73 of file class.ilCalendarViewGUI.php.
References $ch_user_id.
Referenced by getAppointmentShyButton().
ilCalendarViewGUI::getContentByPlugins | ( | ilCalendarEntry | $a_cal_entry, |
int | $a_start_date, | ||
string | $a_content, | ||
ilTemplate | $a_tpl | ||
) |
ilCalendarEntry | $a_cal_entry | |
int | $a_start_date | |
string | $a_content | |
ilTemplate | $a_tpl | needed to adding elements in the template like extra content inside the event container |
Definition at line 345 of file class.ilCalendarViewGUI.php.
References XapiProxy\$plugin, ilTemplate\get(), getActivePlugins(), getAppointmentShyButton(), IL_CAL_UNIX, ilTemplate\parseCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by ilCalendarWeekGUI\showAppointment(), ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarWeekGUI\showFulldayAppointment(), and ilCalendarDayGUI\showFulldayAppointment().
ilCalendarViewGUI::getCurrentApp | ( | ) |
Definition at line 148 of file class.ilCalendarViewGUI.php.
References getEvents(), and initAppointmentIdFromQuery().
Referenced by ilCalendarDayGUI\executeCommand(), ilCalendarMonthGUI\executeCommand(), ilCalendarWeekGUI\executeCommand(), and ilCalendarAgendaListGUI\executeCommand().
ilCalendarViewGUI::getDatesForItem | ( | $item | ) |
$item |
ilDateTimeException |
Definition at line 236 of file class.ilCalendarViewGUI.php.
References IL_CAL_UNIX.
Referenced by getModalForApp().
ilCalendarViewGUI::getEvents | ( | ) |
Definition at line 160 of file class.ilCalendarViewGUI.php.
References $seed, ilCalendarAgendaListGUI\getPeriod(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_MONTH, IL_CAL_WEEK, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, ilCalendarAgendaListGUI\PERIOD_WEEK, ilCalendarSchedule\TYPE_DAY, ilCalendarSchedule\TYPE_HALF_YEAR, ilCalendarSchedule\TYPE_MONTH, ilCalendarSchedule\TYPE_WEEK, and ILIAS\Repository\user().
Referenced by countEventsInView(), downloadFiles(), getCurrentApp(), ilCalendarAgendaListGUI\getHTML(), and getModalForApp().
ilCalendarViewGUI::getModalForApp | ( | ) |
Get modal for appointment (see similar code in ilCalendarBlockGUI)
Definition at line 254 of file class.ilCalendarViewGUI.php.
References ilCalendarAppointmentPresentationGUI\_getInstance(), ILIAS\Repository\ctrl(), exit, ilDatePresentation\formatPeriod(), getDatesForItem(), getEvents(), getModalTitleByPlugins(), initAppointmentIdFromQuery(), and initInitialDateTimeFromQuery().
ilCalendarViewGUI::getModalTitleByPlugins | ( | string | $a_current_title | ) |
Definition at line 327 of file class.ilCalendarViewGUI.php.
References XapiProxy\$plugin, and getActivePlugins().
Referenced by getModalForApp().
|
protected |
Definition at line 104 of file class.ilCalendarViewGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ilCalendarDayGUI\executeCommand(), ilCalendarMonthGUI\executeCommand(), ilCalendarInboxGUI\executeCommand(), ilCalendarWeekGUI\executeCommand(), getAppointmentShyButton(), getCurrentApp(), ilCalendarAgendaListGUI\getHTML(), and getModalForApp().
|
protected |
Definition at line 137 of file class.ilCalendarViewGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ilCalendarMonthGUI\__construct(), ilCalendarWeekGUI\setUpCalendar(), and ilCalendarDayGUI\show().
ilCalendarViewGUI::initialize | ( | int | $a_calendar_presentation_type | ) |
Definition at line 78 of file class.ilCalendarViewGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), iljQueryUtil\initjQuery(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
Referenced by __construct().
|
protected |
Definition at line 115 of file class.ilCalendarViewGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ilCalendarDayGUI\executeCommand(), ilCalendarMonthGUI\executeCommand(), and ilCalendarWeekGUI\executeCommand().
|
protected |
Definition at line 126 of file class.ilCalendarViewGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by getAppointmentShyButton(), ilCalendarAgendaListGUI\getHTML(), and getModalForApp().
ilCalendarViewGUI::setConsulationHoursUserId | ( | int | $a_user_id | ) |
Definition at line 68 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 44 of file class.ilCalendarViewGUI.php.
Referenced by getConsultationHoursUserId().
|
protected |
Definition at line 57 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 49 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarFileDownload().
|
protected |
Definition at line 60 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 53 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarFileDownload().
|
protected |
Definition at line 51 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 56 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 45 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 41 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 59 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 43 of file class.ilCalendarViewGUI.php.
Referenced by __construct(), countEventsInView(), getEvents(), and ilCalendarAgendaListGUI\initEndPeriod().
|
protected |
Definition at line 58 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 50 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarFileDownload().
|
protected |
Definition at line 55 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 52 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 47 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarFileDownload().
|
protected |
Definition at line 48 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 54 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarAgendaListGUI\getPeriod(), and ilCalendarWeekGUI\showAppointment().
|
protected |
Definition at line 42 of file class.ilCalendarViewGUI.php.
const ilCalendarViewGUI::CAL_PRESENTATION_AGENDA_LIST = 9 |
Definition at line 39 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarAgendaListGUI\__construct(), and ilCalendarInboxGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_DAY = 1 |
Definition at line 36 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarDayGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_MONTH = 3 |
Definition at line 38 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarMonthGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_UNDEFINED = 0 |
Definition at line 35 of file class.ilCalendarViewGUI.php.
const ilCalendarViewGUI::CAL_PRESENTATION_WEEK = 2 |
Definition at line 37 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarWeekGUI\__construct().