|
ILIAS
release_8 Revision v8.24
|
Represents a list of calendar appointments (including recurring events) for a specific user in a given time range. More...
Collaboration diagram for ilCalendarSchedule:Public Member Functions | |
| __construct (ilDate $seed, int $a_type, ?int $a_user_id=null, bool $a_strict_period=false) | |
| getEventsLimit () | |
| setEventsLimit (int $a_limit) | |
| addSubitemCalendars (bool $a_status) | |
| enabledSubitemCalendars () | |
| addFilter (ilCalendarScheduleFilter $a_filter) | |
| getByDay (ilDate $a_start, string $a_timezone) | |
| calculate () | |
| getScheduledEvents () | |
| getChangedEvents (bool $a_include_subitem_calendars=false) | |
| get new/changed events More... | |
| getEvents () | |
| Read events (will be moved to another class, since only active and/or visible calendars are shown) More... | |
| setPeriod (ilDate $a_start, ilDate $a_end) | |
Data Fields | |
| const | TYPE_DAY = 1 |
| const | TYPE_WEEK = 2 |
| const | TYPE_MONTH = 3 |
| const | TYPE_INBOX = 4 |
| const | TYPE_HALF_YEAR = 6 |
| const | TYPE_PD_UPCOMING = 5 |
Protected Member Functions | |
| areEventsLimited () | |
| Check if events are limited. More... | |
| filterCategories (array $a_cats) | |
| modifyEventByFilters (ilCalendarEntry $event) | |
| addCustomEvents (ilDate $start, ilDate $end, array $categories) | |
| initPeriod (ilDate $seed) | |
Protected Attributes | |
| int | $limit_events = -1 |
| array | $schedule = array() |
| string | $timezone = ilTimeZone::UTC |
| int | $weekstart |
| int | $type = 0 |
| bool | $subitems_enabled = false |
| ilDate | $start = null |
| ilDate | $end = null |
| ilObjUser | $user |
| ilCalendarUserSettings | $user_settings |
| ilDBInterface | $db |
| array | $filters = array() |
| bool | $strict_period = true |
| ilLogger | $logger |
Represents a list of calendar appointments (including recurring events) for a specific user in a given time range.
Definition at line 28 of file class.ilCalendarSchedule.php.
| ilCalendarSchedule::__construct | ( | ilDate | $seed, |
| int | $a_type, | ||
| ?int | $a_user_id = null, |
||
| bool | $a_strict_period = false |
||
| ) |
Definition at line 60 of file class.ilCalendarSchedule.php.
References $DIC, ilCalendarCategories\_getInstance(), ilCalendarUserSettings\_getInstanceByUserId(), addFilter(), initPeriod(), ILIAS\Repository\logger(), ilCalendarCategories\MODE_CONSULTATION, ilCalendarCategories\MODE_PERSONAL_DESKTOP_MEMBERSHIP, ilCalendarCategories\MODE_PORTFOLIO_CONSULTATION, ilCalendarCategories\MODE_REPOSITORY, and ILIAS\Repository\user().
Here is the call graph for this function:Definition at line 343 of file class.ilCalendarSchedule.php.
Referenced by getChangedEvents(), and getEvents().
Here is the caller graph for this function:| ilCalendarSchedule::addFilter | ( | ilCalendarScheduleFilter | $a_filter | ) |
Definition at line 138 of file class.ilCalendarSchedule.php.
Referenced by __construct().
Here is the caller graph for this function:| ilCalendarSchedule::addSubitemCalendars | ( | bool | $a_status | ) |
Definition at line 128 of file class.ilCalendarSchedule.php.
|
protected |
Check if events are limited.
Definition at line 113 of file class.ilCalendarSchedule.php.
Referenced by calculate().
Here is the caller graph for this function:| ilCalendarSchedule::calculate | ( | ) |
Definition at line 185 of file class.ilCalendarSchedule.php.
References ilCalendarCategoryAssignments\_getAppointmentCalendars(), ilCalendarRecurrences\_getRecurrences(), areEventsLimited(), getEvents(), getEventsLimit(), IL_CAL_FKT_GETDATE, IL_CAL_UNIX, ilArrayUtil\sortArray(), TYPE_DAY, and TYPE_WEEK.
Here is the call graph for this function:| ilCalendarSchedule::enabledSubitemCalendars | ( | ) |
Definition at line 133 of file class.ilCalendarSchedule.php.
References $subitems_enabled.
Referenced by getEvents().
Here is the caller graph for this function:
|
protected |
Definition at line 316 of file class.ilCalendarSchedule.php.
Referenced by getChangedEvents(), and getEvents().
Here is the caller graph for this function:| ilCalendarSchedule::getByDay | ( | ilDate | $a_start, |
| string | $a_timezone | ||
| ) |
Definition at line 143 of file class.ilCalendarSchedule.php.
References Vendor\Package\$a, Vendor\Package\$b, $schedule, $start, ilDateTime\DAY, ilDate\get(), IL_CAL_DATETIME, IL_CAL_UNIX, and ilDateTime\increment().
Referenced by ilCalendarMonthGUI\showEvents().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarSchedule::getChangedEvents | ( | bool | $a_include_subitem_calendars = false | ) |
get new/changed events
| bool | $a_include_subitem_calendars | E.g include session calendars of courses. |
Definition at line 362 of file class.ilCalendarSchedule.php.
References $query, $res, $start, ilCalendarCategories\_getInstance(), addCustomEvents(), ilDBConstants\FETCHMODE_OBJECT, filterCategories(), ilDate\get(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_MONTH, ilDateTime\increment(), modifyEventByFilters(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilCalendarSchedule::getEvents | ( | ) |
Read events (will be moved to another class, since only active and/or visible calendars are shown)
Definition at line 400 of file class.ilCalendarSchedule.php.
References $query, $res, ilCalendarCategories\_getInstance(), addCustomEvents(), enabledSubitemCalendars(), ilDBConstants\FETCHMODE_OBJECT, filterCategories(), IL_CAL_DATETIME, IL_CAL_UNIX, modifyEventByFilters(), and ILIAS\Repository\user().
Referenced by calculate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarSchedule::getEventsLimit | ( | ) |
Definition at line 118 of file class.ilCalendarSchedule.php.
References $limit_events.
Referenced by calculate().
Here is the caller graph for this function:| ilCalendarSchedule::getScheduledEvents | ( | ) |
Definition at line 311 of file class.ilCalendarSchedule.php.
References $schedule.
|
protected |
Definition at line 447 of file class.ilCalendarSchedule.php.
References $start, ilCalendarUtil\_getMaxDayOfMonth(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, IL_CAL_MONTH, IL_CAL_SECOND, IL_CAL_WEEK, ilDateTime\increment(), ILIAS\Repository\int(), TYPE_DAY, TYPE_HALF_YEAR, TYPE_INBOX, TYPE_MONTH, TYPE_PD_UPCOMING, TYPE_WEEK, ilCalendarSettings\WEEK_START_MONDAY, and ilCalendarSettings\WEEK_START_SUNDAY.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 327 of file class.ilCalendarSchedule.php.
References $res, and ILIAS\Repository\logger().
Referenced by getChangedEvents(), and getEvents().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarSchedule::setEventsLimit | ( | int | $a_limit | ) |
Definition at line 123 of file class.ilCalendarSchedule.php.
Definition at line 555 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 51 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 48 of file class.ilCalendarSchedule.php.
Referenced by addCustomEvents().
|
protected |
Definition at line 52 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 39 of file class.ilCalendarSchedule.php.
Referenced by getEventsLimit().
|
protected |
Definition at line 58 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 40 of file class.ilCalendarSchedule.php.
Referenced by getByDay(), and getScheduledEvents().
|
protected |
Definition at line 47 of file class.ilCalendarSchedule.php.
Referenced by addCustomEvents(), getByDay(), getChangedEvents(), and initPeriod().
|
protected |
Definition at line 57 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 45 of file class.ilCalendarSchedule.php.
Referenced by enabledSubitemCalendars().
|
protected |
Definition at line 41 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 43 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 49 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 50 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 42 of file class.ilCalendarSchedule.php.
| const ilCalendarSchedule::TYPE_DAY = 1 |
Definition at line 30 of file class.ilCalendarSchedule.php.
Referenced by calculate(), ilCalendarViewGUI\getEvents(), initPeriod(), and ilCalendarDayGUI\show().
| const ilCalendarSchedule::TYPE_HALF_YEAR = 6 |
Definition at line 34 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarViewGUI\getEvents(), and initPeriod().
| const ilCalendarSchedule::TYPE_INBOX = 4 |
Definition at line 33 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarBlockGUI\getOverview(), and initPeriod().
| const ilCalendarSchedule::TYPE_MONTH = 3 |
Definition at line 32 of file class.ilCalendarSchedule.php.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilCalendarViewGUI\getEvents(), initPeriod(), and ilCalendarMonthGUI\show().
| const ilCalendarSchedule::TYPE_PD_UPCOMING = 5 |
Definition at line 37 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarBlockGUI\getEvents(), and initPeriod().
| const ilCalendarSchedule::TYPE_WEEK = 2 |
Definition at line 31 of file class.ilCalendarSchedule.php.
Referenced by calculate(), ilCalendarViewGUI\getEvents(), initPeriod(), and ilCalendarWeekGUI\show().