ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Calendar schedule filter for individual timings. More...
Public Member Functions | |
__construct ($a_usr_id) | |
ilCalendarScheduleFilterTimings constructor. More... | |
getLogger () | |
Get logger. More... | |
filterCategories (array $a_cats) | |
Filter categories All categories are show no filtering (support for individual folder appointments) More... | |
modifyEvent (ilCalendarEntry $a_event) | |
modify event => return false for not presenting event More... | |
addCustomEvents (ilDate $start, ilDate $end, array $a_categories) | |
Add custom events: relative timings, modified timings. More... | |
Data Fields | |
const | CAL_TIMING_START = 1 |
const | CAL_TIMING_END = 2 |
Protected Member Functions | |
findCalendarEntriesForItem ($category_id, $item_ref_id) | |
isCourseCategory ($a_category_id) | |
enabledCourseTimings ($a_course_ref) | |
Check if timings enabled for ref_id. More... | |
Private Attributes | |
$user_id = 0 | |
$logger | |
Calendar schedule filter for individual timings.
Definition at line 11 of file class.ilCalendarScheduleFilterTimings.php.
ilCalendarScheduleFilterTimings::__construct | ( | $a_usr_id | ) |
ilCalendarScheduleFilterTimings constructor.
int | a_usr_id |
Definition at line 31 of file class.ilCalendarScheduleFilterTimings.php.
References ilLoggerFactory\getLogger().
ilCalendarScheduleFilterTimings::addCustomEvents | ( | ilDate | $start, |
ilDate | $end, | ||
array | $a_categories | ||
) |
Add custom events: relative timings, modified timings.
Implements ilCalendarScheduleFilter.
Definition at line 139 of file class.ilCalendarScheduleFilterTimings.php.
References $end, $start, ilObject\_getAllReferences(), ilDateTime\_within(), ilObjCourse\CAL_COURSE_TIMING_END, ilObjCourse\CAL_COURSE_TIMING_START, enabledCourseTimings(), findCalendarEntriesForItem(), getLogger(), ilLoggerFactory\getLogger(), ilObjectActivation\getTimingsItems(), IL_CAL_DATE, ilCourseConstants\IL_CRS_VIEW_TIMING_ABSOLUTE, isCourseCategory(), ilObjCourse\lookupTimingMode(), and ilObjectActivation\TIMINGS_PRESETTING.
|
protected |
Check if timings enabled for ref_id.
int | $a_course_ref |
Definition at line 255 of file class.ilCalendarScheduleFilterTimings.php.
References ilObject\_lookupObjId(), ilObjCourse\_lookupViewMode(), getLogger(), and ilContainer\VIEW_TIMING.
Referenced by addCustomEvents(), and modifyEvent().
ilCalendarScheduleFilterTimings::filterCategories | ( | array | $a_cats | ) |
Filter categories All categories are show no filtering (support for individual folder appointments)
int[] | $a_cats |
Implements ilCalendarScheduleFilter.
Definition at line 51 of file class.ilCalendarScheduleFilterTimings.php.
|
protected |
$category_id | |
$item_ref_id |
Definition at line 210 of file class.ilCalendarScheduleFilterTimings.php.
References ilCalendarCategoryAssignments\_getAssignedAppointments(), ilObjCourse\CAL_COURSE_TIMING_END, and ilObjCourse\CAL_COURSE_TIMING_START.
Referenced by addCustomEvents().
ilCalendarScheduleFilterTimings::getLogger | ( | ) |
Get logger.
Definition at line 41 of file class.ilCalendarScheduleFilterTimings.php.
References $logger.
Referenced by addCustomEvents(), enabledCourseTimings(), isCourseCategory(), and modifyEvent().
|
protected |
int | $a_category_id |
Definition at line 235 of file class.ilCalendarScheduleFilterTimings.php.
References ilCalendarCategory\getInstanceByCategoryId(), getLogger(), and ilCalendarCategory\TYPE_OBJ.
Referenced by addCustomEvents(), and modifyEvent().
ilCalendarScheduleFilterTimings::modifyEvent | ( | ilCalendarEntry | $a_event | ) |
modify event => return false for not presenting event
\ilCalendarEntry | $a_event |
Implements ilCalendarScheduleFilter.
Definition at line 61 of file class.ilCalendarScheduleFilterTimings.php.
References ilObject\_getAllReferences(), ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObjCourse\CAL_COURSE_TIMING_END, ilObjCourse\CAL_COURSE_TIMING_START, enabledCourseTimings(), ilCalendarEntry\getContextId(), ilCalendarEntry\getContextInfo(), ilCalendarEntry\getEntryId(), ilObjectActivation\getItem(), getLogger(), ilCalendarEntry\getPresentationTitle(), ilCalendarEntry\getTitle(), ilCourseConstants\IL_CRS_VIEW_TIMING_RELATIVE, ilCalendarEntry\isAutoGenerated(), isCourseCategory(), ilObjCourse\lookupTimingMode(), ilCalendarEntry\setTitle(), and ilObjectActivation\TIMINGS_PRESETTING.
|
private |
Definition at line 25 of file class.ilCalendarScheduleFilterTimings.php.
Referenced by getLogger().
|
private |
Definition at line 19 of file class.ilCalendarScheduleFilterTimings.php.
const ilCalendarScheduleFilterTimings::CAL_TIMING_END = 2 |
Definition at line 14 of file class.ilCalendarScheduleFilterTimings.php.
const ilCalendarScheduleFilterTimings::CAL_TIMING_START = 1 |
Definition at line 13 of file class.ilCalendarScheduleFilterTimings.php.