ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Represents a list of calendar appointments (including recurring events) for a specific user in a given time range. More...
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, null, and ILIAS\Repository\user().
Definition at line 343 of file class.ilCalendarSchedule.php.
Referenced by getChangedEvents(), and getEvents().
ilCalendarSchedule::addFilter | ( | ilCalendarScheduleFilter | $a_filter | ) |
Definition at line 138 of file class.ilCalendarSchedule.php.
Referenced by __construct().
ilCalendarSchedule::addSubitemCalendars | ( | bool | $a_status | ) |
Definition at line 128 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarWeekGUI\show().
|
protected |
Check if events are limited.
Definition at line 113 of file class.ilCalendarSchedule.php.
Referenced by calculate().
ilCalendarSchedule::calculate | ( | ) |
Definition at line 185 of file class.ilCalendarSchedule.php.
References $duration, ilCalendarCategoryAssignments\_getAppointmentCalendars(), ilCalendarRecurrences\_getRecurrences(), areEventsLimited(), getEvents(), getEventsLimit(), IL_CAL_FKT_GETDATE, IL_CAL_UNIX, and ilArrayUtil\sortArray().
ilCalendarSchedule::enabledSubitemCalendars | ( | ) |
Definition at line 133 of file class.ilCalendarSchedule.php.
References $subitems_enabled.
Referenced by getEvents().
|
protected |
Definition at line 316 of file class.ilCalendarSchedule.php.
Referenced by getChangedEvents(), and getEvents().
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, $timezone, ilDateTime\DAY, ilDate\get(), ilDateTime\get(), IL_CAL_DATETIME, IL_CAL_UNIX, and ilDateTime\increment().
Referenced by ilCalendarMonthGUI\showEvents().
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 $res, 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().
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 $res, ilCalendarCategories\_getInstance(), addCustomEvents(), enabledSubitemCalendars(), ilDBConstants\FETCHMODE_OBJECT, filterCategories(), IL_CAL_DATETIME, IL_CAL_UNIX, modifyEventByFilters(), and ILIAS\Repository\user().
Referenced by calculate().
ilCalendarSchedule::getEventsLimit | ( | ) |
Definition at line 118 of file class.ilCalendarSchedule.php.
References $limit_events.
Referenced by calculate().
ilCalendarSchedule::getScheduledEvents | ( | ) |
|
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(), ilCalendarSettings\WEEK_START_MONDAY, and ilCalendarSettings\WEEK_START_SUNDAY.
Referenced by __construct().
|
protected |
Definition at line 327 of file class.ilCalendarSchedule.php.
References $res, ILIAS\Repository\logger(), and null.
Referenced by getChangedEvents(), and getEvents().
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.
Definition at line 48 of file class.ilCalendarSchedule.php.
|
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().
Definition at line 47 of file class.ilCalendarSchedule.php.
Referenced by 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.
Referenced by getByDay().
|
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 ilCalendarViewGUI\getEvents(), and ilCalendarDayGUI\show().
const ilCalendarSchedule::TYPE_HALF_YEAR = 6 |
Definition at line 34 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarViewGUI\getEvents().
const ilCalendarSchedule::TYPE_INBOX = 4 |
Definition at line 33 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarBlockGUI\getOverview().
const ilCalendarSchedule::TYPE_MONTH = 3 |
Definition at line 32 of file class.ilCalendarSchedule.php.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilCalendarViewGUI\getEvents(), and ilCalendarMonthGUI\show().
const ilCalendarSchedule::TYPE_PD_UPCOMING = 5 |
Definition at line 37 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarBlockGUI\getEvents().
const ilCalendarSchedule::TYPE_WEEK = 2 |
Definition at line 31 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarViewGUI\getEvents(), and ilCalendarWeekGUI\show().