ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (ilDate $seed, $presentation_type) | |
setConsulationHoursUserId ($a_user_id) | |
getConsultationHoursUserId () | |
initialize ($a_calendar_presentation_type) | |
View initialization. More... | |
getCurrentApp () | |
Get app for id. More... | |
getEvents () | |
Get events. More... | |
getDatesForItem ($item) | |
Get start/end date for item. More... | |
getModalForApp () | |
Get modal for appointment (see similar code in ilCalendarBlockGUI) More... | |
getAppointmentShyButton ($a_calendar_entry, $a_dstart, $a_title_forced="") | |
getActivePlugins ($a_slot_id) | |
getModalTitleByPlugins ($a_current_title) | |
getContentByPlugins ($a_cal_entry, $a_start_date, $a_content, $a_tpl) | |
addToolbarActions () | |
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_DAY = 1 |
const | CAL_PRESENTATION_WEEK = 2 |
const | CAL_PRESENTATION_MONTH = 3 |
const | CAL_PRESENTATION_AGENDA_LIST = 9 |
Protected Attributes | |
$ui_factory | |
$ui_renderer | |
$ctrl | |
$presentation_type | |
$toolbar | |
$logger | |
$ui | |
$view_with_appointments | |
$lng | |
$user | |
$seed | |
$ch_user_id = 0 | |
Definition at line 10 of file class.ilCalendarViewGUI.php.
ilCalendarViewGUI::__construct | ( | ilDate | $seed, |
$presentation_type | |||
) |
ilDate | $seed | |
int | $presentation_type |
Definition at line 84 of file class.ilCalendarViewGUI.php.
References $presentation_type, $seed, and initialize().
ilCalendarViewGUI::addToolbarActions | ( | ) |
Add download link to toolbar.
//TODO rename this method to something like addToolbarDonwloadFiles
Definition at line 400 of file class.ilCalendarViewGUI.php.
References $ctrl, $lng, $toolbar, $ui_factory, ilCalendarSettings\_getInstance(), and countEventsInView().
ilCalendarViewGUI::countEventsInView | ( | ) |
get the events starting between 2 dates based in seed + view options.
Definition at line 517 of file class.ilCalendarViewGUI.php.
References $end, $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 addToolbarActions().
ilCalendarViewGUI::downloadFiles | ( | ) |
Download files related to the appointments showed in the current calendar view (day,week,month,list).
Not modals
Definition at line 428 of file class.ilCalendarViewGUI.php.
References $GLOBALS, getBucketTitle(), getEvents(), ilUtil\sendSuccess(), and user().
ilCalendarViewGUI::getActivePlugins | ( | $a_slot_id | ) |
Definition at line 323 of file class.ilCalendarViewGUI.php.
References $res, array, and IL_COMP_SERVICE.
Referenced by getContentByPlugins(), getModalTitleByPlugins(), and ilCalendarAgendaListGUI\getPluginAgendaItem().
ilCalendarViewGUI::getAppointmentShyButton | ( | $a_calendar_entry, | |
$a_dstart, | |||
$a_title_forced = "" |
|||
) |
$a_calendar_entry | ||
$a_dstart | ||
string | $a_title_forced | //used in plugins to rename the shy button title. |
Definition at line 290 of file class.ilCalendarViewGUI.php.
References $_GET, $r, $title, $ui_factory, $ui_renderer, $url, getConsultationHoursUserId(), and IL_CAL_DATE.
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 445 of file class.ilCalendarViewGUI.php.
References ilCalendarUtil\_buildWeekDayList(), ilCalendarUserSettings\_getInstanceByUserId(), ilSession\get(), IL_CAL_DATE, IL_CAL_FKT_DATE, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, ilCalendarAgendaListGUI\PERIOD_WEEK, and user().
Referenced by downloadFiles().
ilCalendarViewGUI::getConsultationHoursUserId | ( | ) |
Definition at line 99 of file class.ilCalendarViewGUI.php.
References $ch_user_id.
Referenced by getAppointmentShyButton().
ilCalendarViewGUI::getContentByPlugins | ( | $a_cal_entry, | |
$a_start_date, | |||
$a_content, | |||
$a_tpl | |||
) |
$a_cal_entry | |
$a_start_date | |
$a_content | |
$a_tpl | needed to adding elements in the template like extra content inside the event container |
Definition at line 359 of file class.ilCalendarViewGUI.php.
References $a_content, getActivePlugins(), and getAppointmentShyButton().
Referenced by ilCalendarWeekGUI\showAppointment(), ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarWeekGUI\showFulldayAppointment(), and ilCalendarDayGUI\showFulldayAppointment().
ilCalendarViewGUI::getCurrentApp | ( | ) |
Get app for id.
Definition at line 142 of file class.ilCalendarViewGUI.php.
References $_GET, and getEvents().
Referenced by ilCalendarMonthGUI\executeCommand(), ilCalendarWeekGUI\executeCommand(), ilCalendarDayGUI\executeCommand(), and ilCalendarAgendaListGUI\executeCommand().
ilCalendarViewGUI::getDatesForItem | ( | $item | ) |
Get start/end date for item.
array | $item | item |
Definition at line 234 of file class.ilCalendarViewGUI.php.
References $end, array, and IL_CAL_UNIX.
Referenced by getModalForApp().
ilCalendarViewGUI::getEvents | ( | ) |
Get events.
Definition at line 160 of file class.ilCalendarViewGUI.php.
References $seed, $user, 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 user().
Referenced by countEventsInView(), downloadFiles(), getCurrentApp(), ilCalendarAgendaListGUI\getHTML(), and getModalForApp().
ilCalendarViewGUI::getModalForApp | ( | ) |
Get modal for appointment (see similar code in ilCalendarBlockGUI)
Definition at line 251 of file class.ilCalendarViewGUI.php.
References $_GET, $ctrl, $r, $ui_factory, $ui_renderer, ilCalendarAppointmentPresentationGUI\_getInstance(), exit, ilDatePresentation\formatPeriod(), getDatesForItem(), getEvents(), and getModalTitleByPlugins().
ilCalendarViewGUI::getModalTitleByPlugins | ( | $a_current_title | ) |
Definition at line 341 of file class.ilCalendarViewGUI.php.
References getActivePlugins().
Referenced by getModalForApp().
ilCalendarViewGUI::initialize | ( | $a_calendar_presentation_type | ) |
View initialization.
integer | $a_calendar_presentation_type |
Definition at line 112 of file class.ilCalendarViewGUI.php.
References $DIC, $GLOBALS, iljQueryUtil\initjQuery(), and user().
Referenced by __construct().
ilCalendarViewGUI::setConsulationHoursUserId | ( | $a_user_id | ) |
Definition at line 91 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 75 of file class.ilCalendarViewGUI.php.
Referenced by getConsultationHoursUserId().
|
protected |
Definition at line 30 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarActions(), and getModalForApp().
|
protected |
Definition at line 60 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarActions().
|
protected |
Definition at line 45 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 35 of file class.ilCalendarViewGUI.php.
Referenced by __construct().
|
protected |
Definition at line 70 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarAgendaListGUI\__construct(), __construct(), countEventsInView(), and getEvents().
|
protected |
Definition at line 40 of file class.ilCalendarViewGUI.php.
Referenced by addToolbarActions().
|
protected |
Definition at line 50 of file class.ilCalendarViewGUI.php.
|
protected |
Definition at line 20 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarWeekGUI\addTimedEvents(), addToolbarActions(), ilCalendarDayGUI\executeCommand(), getAppointmentShyButton(), getModalForApp(), and ilCalendarDayGUI\showFulldayAppointment().
|
protected |
Definition at line 25 of file class.ilCalendarViewGUI.php.
Referenced by getAppointmentShyButton(), getModalForApp(), and ilCalendarDayGUI\showFulldayAppointment().
|
protected |
Definition at line 65 of file class.ilCalendarViewGUI.php.
Referenced by getEvents().
|
protected |
Definition at line 55 of file class.ilCalendarViewGUI.php.
const ilCalendarViewGUI::CAL_PRESENTATION_AGENDA_LIST = 9 |
Definition at line 15 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarAgendaListGUI\__construct(), and ilCalendarInboxGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_DAY = 1 |
Definition at line 12 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarDayGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_MONTH = 3 |
Definition at line 14 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarMonthGUI\__construct().
const ilCalendarViewGUI::CAL_PRESENTATION_WEEK = 2 |
Definition at line 13 of file class.ilCalendarViewGUI.php.
Referenced by ilCalendarWeekGUI\__construct().