ILIAS
Release_4_1_x_branch Revision 61804
|
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, $a_type, $a_user_id=0, $filter_bookings=false) | |
Constructor. | |
addSubitemCalendars ($a_status) | |
Enable subitem calendars (session calendars for courses) | |
enabledSubitemCalendars () | |
Are subitem calendars enabled. | |
getByDay (ilDate $a_start, $a_timezone) | |
get byday | |
calculate () | |
calculate | |
getChangedEvents ($a_include_subitem_calendars=false) | |
get new/changed events | |
getEvents () | |
Read events (will be moved to another class, since only active and/or visible calendars are shown) |
Data Fields | |
const | TYPE_DAY = 1 |
const | TYPE_WEEK = 2 |
const | TYPE_MONTH = 3 |
const | TYPE_INBOX = 4 |
Protected Member Functions | |
initPeriod (ilDate $seed) | |
init period of events |
Protected Attributes | |
$schedule = array() | |
$timezone | |
$weekstart | |
$hidden_cat = null | |
$type = 0 | |
$subitems_enabled = false | |
$filter_bookings = false | |
$start = null | |
$end = null | |
$user = null | |
$user_settings = null | |
$db = null |
Represents a list of calendar appointments (including recurring events) for a specific user in a given time range.
Definition at line 41 of file class.ilCalendarSchedule.php.
ilCalendarSchedule::__construct | ( | ilDate | $seed, |
$a_type, | |||
$a_user_id = 0 , |
|||
$filter_bookings = false |
|||
) |
Constructor.
public
ilDate | seed date |
int | type of schedule (TYPE_DAY,TYPE_WEEK or TYPE_MONTH) |
int | user_id |
Definition at line 72 of file class.ilCalendarSchedule.php.
References $filter_bookings, $ilDB, ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarHidden\_getInstanceByUserId(), and initPeriod().
ilCalendarSchedule::addSubitemCalendars | ( | $a_status | ) |
Enable subitem calendars (session calendars for courses)
@return |
Definition at line 102 of file class.ilCalendarSchedule.php.
ilCalendarSchedule::calculate | ( | ) |
calculate
protected
Definition at line 168 of file class.ilCalendarSchedule.php.
References $ilDB, ilCalendarCategoryAssignments\_getAppointmentCalendars(), ilCalendarRecurrences\_getRecurrences(), getEvents(), IL_CAL_FKT_GETDATE, and IL_CAL_UNIX.
ilCalendarSchedule::enabledSubitemCalendars | ( | ) |
Are subitem calendars enabled.
Definition at line 111 of file class.ilCalendarSchedule.php.
References $subitems_enabled.
Referenced by getEvents().
ilCalendarSchedule::getByDay | ( | ilDate | $a_start, |
$a_timezone | |||
) |
get byday
public
ilDate | start |
Definition at line 123 of file class.ilCalendarSchedule.php.
References $schedule, $start, $timezone, ilDateTime\DAY, ilDate\get(), ilDateTime\get(), IL_CAL_DATETIME, IL_CAL_UNIX, and ilDateTime\increment().
ilCalendarSchedule::getChangedEvents | ( | $a_include_subitem_calendars = false | ) |
get new/changed events
bool | $a_include_subitem_calendars | E.g include session calendars of courses. |
Definition at line 269 of file class.ilCalendarSchedule.php.
References $ilDB, $query, $res, $row, $start, ilCalendarCategories\_getInstance(), DB_FETCHMODE_OBJECT, IL_CAL_DATE, IL_CAL_DATETIME, and IL_CAL_MONTH.
ilCalendarSchedule::getEvents | ( | ) |
Read events (will be moved to another class, since only active and/or visible calendars are shown)
protected
Definition at line 308 of file class.ilCalendarSchedule.php.
References $filter_bookings, $ilDB, $query, $res, $row, ilCalendarCategories\_getInstance(), DB_FETCHMODE_OBJECT, enabledSubitemCalendars(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by calculate().
|
protected |
init period of events
protected
ilDate | seed |
Definition at line 384 of file class.ilCalendarSchedule.php.
References $start, ilCalendarUtil\_getMaxDayOfMonth(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, and ilDateTime\increment().
Referenced by __construct().
|
protected |
Definition at line 61 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 58 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 55 of file class.ilCalendarSchedule.php.
Referenced by __construct(), and getEvents().
|
protected |
Definition at line 51 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 48 of file class.ilCalendarSchedule.php.
Referenced by getByDay().
|
protected |
Definition at line 57 of file class.ilCalendarSchedule.php.
Referenced by getByDay(), getChangedEvents(), and initPeriod().
|
protected |
Definition at line 54 of file class.ilCalendarSchedule.php.
Referenced by enabledSubitemCalendars().
|
protected |
Definition at line 49 of file class.ilCalendarSchedule.php.
Referenced by getByDay().
|
protected |
Definition at line 52 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 59 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 60 of file class.ilCalendarSchedule.php.
|
protected |
Definition at line 50 of file class.ilCalendarSchedule.php.
const ilCalendarSchedule::TYPE_DAY = 1 |
Definition at line 43 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarDayGUI\show().
const ilCalendarSchedule::TYPE_INBOX = 4 |
Definition at line 46 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarBlockGUI\getOverview(), and ilCalendarInboxGUI\inbox().
const ilCalendarSchedule::TYPE_MONTH = 3 |
Definition at line 45 of file class.ilCalendarSchedule.php.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), and ilCalendarMonthGUI\show().
const ilCalendarSchedule::TYPE_WEEK = 2 |
Definition at line 44 of file class.ilCalendarSchedule.php.
Referenced by ilCalendarWeekGUI\show().