ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
CalendarQuery Validator. More...
Public Member Functions | |
validate (VObject\Component\VCalendar $vObject, array $filters) | |
Verify if a list of filters applies to the calendar data object. More... | |
Protected Member Functions | |
validateCompFilters (VObject\Component $parent, array $filters) | |
This method checks the validity of comp-filters. More... | |
validatePropFilters (VObject\Component $parent, array $filters) | |
This method checks the validity of prop-filters. More... | |
validateParamFilters (VObject\Property $parent, array $filters) | |
This method checks the validity of param-filters. More... | |
validateTextMatch ($check, array $textMatch) | |
This method checks the validity of a text-match. More... | |
validateTimeRange (VObject\Node $component, $start, $end) | |
Validates if a component matches the given time range. More... | |
CalendarQuery Validator.
This class is responsible for checking if an iCalendar object matches a set of filters. The main function to do this is 'validate'.
This is used to determine which icalendar objects should be returned for a calendar-query REPORT request.
Definition at line 21 of file CalendarQueryValidator.php.
Sabre\CalDAV\CalendarQueryValidator::validate | ( | VObject\Component\VCalendar | $vObject, |
array | $filters | ||
) |
Verify if a list of filters applies to the calendar data object.
The list of filters must be formatted as parsed by
VObject\Component\VCalendar | $vObject | |
array | $filters |
Definition at line 32 of file CalendarQueryValidator.php.
References Sabre\CalDAV\CalendarQueryValidator\validateCompFilters(), and Sabre\CalDAV\CalendarQueryValidator\validatePropFilters().
|
protected |
This method checks the validity of comp-filters.
A list of comp-filters needs to be specified. Also the parent of the component we're checking should be specified, not the component to check itself.
VObject\Component | $parent | |
array | $filters |
Definition at line 58 of file CalendarQueryValidator.php.
References Sabre\CalDAV\CalendarQueryValidator\validatePropFilters(), and Sabre\CalDAV\CalendarQueryValidator\validateTimeRange().
Referenced by Sabre\CalDAV\CalendarQueryValidator\validate().
|
protected |
This method checks the validity of param-filters.
A list of param-filters needs to be specified. Also the parent of the parameter we're checking should be specified, not the parameter to check itself.
VObject\Property | $parent | |
array | $filters |
Definition at line 197 of file CalendarQueryValidator.php.
References Sabre\CalDAV\CalendarQueryValidator\validateTextMatch().
Referenced by Sabre\CalDAV\CalendarQueryValidator\validatePropFilters().
|
protected |
This method checks the validity of prop-filters.
A list of prop-filters needs to be specified. Also the parent of the property we're checking should be specified, not the property to check itself.
VObject\Component | $parent | |
array | $filters |
Definition at line 127 of file CalendarQueryValidator.php.
References Sabre\CalDAV\CalendarQueryValidator\validateParamFilters(), Sabre\CalDAV\CalendarQueryValidator\validateTextMatch(), and Sabre\CalDAV\CalendarQueryValidator\validateTimeRange().
Referenced by Sabre\CalDAV\CalendarQueryValidator\validate(), and Sabre\CalDAV\CalendarQueryValidator\validateCompFilters().
|
protected |
This method checks the validity of a text-match.
A single text-match should be specified as well as the specific property or parameter we need to validate.
VObject\Node | string | $check | Value to check against. |
array | $textMatch |
Definition at line 253 of file CalendarQueryValidator.php.
References Sabre\DAV\StringUtil\textMatch().
Referenced by Sabre\CalDAV\CalendarQueryValidator\validateParamFilters(), and Sabre\CalDAV\CalendarQueryValidator\validatePropFilters().
|
protected |
Validates if a component matches the given time range.
This is all based on the rules specified in rfc4791, which are quite complex.
VObject\Node | $component | |
DateTime | $start | |
DateTime | $end |
Definition at line 276 of file CalendarQueryValidator.php.
Referenced by Sabre\CalDAV\CalendarQueryValidator\validateCompFilters(), and Sabre\CalDAV\CalendarQueryValidator\validatePropFilters().