ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Calendar schedule filter for booking pool reservations. More...
Public Member Functions | |
__construct ($a_user_id) | |
ilCalendarScheduleFilterBookingPool constructor. More... | |
filterCategories (array $a_cats) | |
modifyEvent (ilCalendarEntry $a_event) | |
addCustomEvents (ilDate $start, ilDate $end, array $a_categories) | |
Protected Member Functions | |
isBookingPoolCategory ($a_cat_id) | |
Protected Attributes | |
$user_id | |
$cats | |
Calendar schedule filter for booking pool reservations.
Definition at line 13 of file class.ilCalendarScheduleFilterBookingPool.php.
ilCalendarScheduleFilterBookingPool::__construct | ( | $a_user_id | ) |
ilCalendarScheduleFilterBookingPool constructor.
int | $a_user_id |
Definition at line 29 of file class.ilCalendarScheduleFilterBookingPool.php.
References ilCalendarCategories\_getInstance().
ilCalendarScheduleFilterBookingPool::addCustomEvents | ( | ilDate | $start, |
ilDate | $end, | ||
array | $a_categories | ||
) |
Implements ilCalendarScheduleFilter.
Definition at line 74 of file class.ilCalendarScheduleFilterBookingPool.php.
ilCalendarScheduleFilterBookingPool::filterCategories | ( | array | $a_cats | ) |
array | $a_cats |
Implements ilCalendarScheduleFilter.
Definition at line 39 of file class.ilCalendarScheduleFilterBookingPool.php.
|
protected |
$a_cat_id |
Definition at line 83 of file class.ilCalendarScheduleFilterBookingPool.php.
References ilCalendarCategory\getInstanceByCategoryId(), and ilCalendarCategory\TYPE_BOOK.
Referenced by modifyEvent().
ilCalendarScheduleFilterBookingPool::modifyEvent | ( | ilCalendarEntry | $a_event | ) |
ilCalendarEntry | $a_event |
ilDateTimeException |
booking pool reservations are stored in the database with ending time excluded. Keeping it 1 second under the entered end date. e.g. Event from 10:00 to 11:00 is stored 10:00 to 10:59 using timestamps. incrementing 1 second avoid titles/zip folders using this -1 second representation.
Implements ilCalendarScheduleFilter.
Definition at line 49 of file class.ilCalendarScheduleFilterBookingPool.php.
References $end, ilCalendarCategoryAssignments\_lookupCategory(), ilCalendarEntry\getEnd(), ilCalendarEntry\getEntryId(), IL_CAL_UNIX, isBookingPoolCategory(), and ilCalendarEntry\setEnd().
|
protected |
Definition at line 23 of file class.ilCalendarScheduleFilterBookingPool.php.
|
protected |
Definition at line 18 of file class.ilCalendarScheduleFilterBookingPool.php.