ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This is a mock CalDAV backend that supports subscriptions. More...
Public Member Functions | |
getSubscriptionsForUser ($principalUri) | |
Returns a list of subscriptions for a principal. More... | |
createSubscription ($principalUri, $uri, array $properties) | |
Creates a new subscription for a principal. More... | |
updateSubscription ($subscriptionId, DAV\PropPatch $propPatch) | |
Updates a subscription. More... | |
deleteSubscription ($subscriptionId) | |
Deletes a subscription. More... | |
Public Member Functions inherited from Sabre\CalDAV\Backend\Mock | |
__construct (array $calendars=[], array $calendarData=[]) | |
getCalendarsForUser ($principalUri) | |
Returns a list of calendars for a principal. More... | |
createCalendar ($principalUri, $calendarUri, array $properties) | |
Creates a new calendar for a principal. More... | |
updateCalendar ($calendarId, \Sabre\DAV\PropPatch $propPatch) | |
Updates properties for a calendar. More... | |
deleteCalendar ($calendarId) | |
Delete a calendar and all it's objects. More... | |
getCalendarObjects ($calendarId) | |
Returns all calendar objects within a calendar object. More... | |
getCalendarObject ($calendarId, $objectUri) | |
Returns information from a single calendar object, based on it's object uri. More... | |
createCalendarObject ($calendarId, $objectUri, $calendarData) | |
Creates a new calendar object. More... | |
updateCalendarObject ($calendarId, $objectUri, $calendarData) | |
Updates an existing calendarobject, based on it's uri. More... | |
deleteCalendarObject ($calendarId, $objectUri) | |
Deletes an existing calendar object. More... | |
Public Member Functions inherited from Sabre\CalDAV\Backend\AbstractBackend | |
updateCalendar ($calendarId, \Sabre\DAV\PropPatch $propPatch) | |
Updates properties for a calendar. More... | |
getMultipleCalendarObjects ($calendarId, array $uris) | |
Returns a list of calendar objects. More... | |
calendarQuery ($calendarId, array $filters) | |
Performs a calendar-query on the contents of this calendar. More... | |
getCalendarObjectByUID ($principalUri, $uid) | |
Searches through all of a users calendars and calendar objects to find an object with a specific UID. More... | |
Protected Attributes | |
$subs = [] | |
Protected Attributes inherited from Sabre\CalDAV\Backend\Mock | |
$calendarData | |
$calendars | |
Additional Inherited Members | |
Protected Member Functions inherited from Sabre\CalDAV\Backend\AbstractBackend | |
validateFilterForObject (array $object, array $filters) | |
This method validates if a filter (as passed to calendarQuery) matches the given object. More... | |
This is a mock CalDAV backend that supports subscriptions.
All data is retained in memory temporarily. It's primary purpose is unit-tests.
Definition at line 18 of file MockSubscriptionSupport.php.
Sabre\CalDAV\Backend\MockSubscriptionSupport::createSubscription | ( | $principalUri, | |
$uri, | |||
array | $properties | ||
) |
Creates a new subscription for a principal.
If the creation was a success, an id must be returned that can be used to reference this subscription in other methods, such as updateSubscription.
string | $principalUri | |
string | $uri | |
array | $properties |
Implements Sabre\CalDAV\Backend\SubscriptionSupport.
Definition at line 74 of file MockSubscriptionSupport.php.
References $id.
Sabre\CalDAV\Backend\MockSubscriptionSupport::deleteSubscription | ( | $subscriptionId | ) |
Deletes a subscription.
mixed | $subscriptionId |
Implements Sabre\CalDAV\Backend\SubscriptionSupport.
Definition at line 141 of file MockSubscriptionSupport.php.
References $index.
Sabre\CalDAV\Backend\MockSubscriptionSupport::getSubscriptionsForUser | ( | $principalUri | ) |
Returns a list of subscriptions for a principal.
Every subscription is an array with the following keys:
Furthermore, all the subscription info must be returned too:
string | $principalUri |
Implements Sabre\CalDAV\Backend\SubscriptionSupport.
Definition at line 54 of file MockSubscriptionSupport.php.
Sabre\CalDAV\Backend\MockSubscriptionSupport::updateSubscription | ( | $subscriptionId, | |
DAV\PropPatch | $propPatch | ||
) |
Updates a subscription.
The list of mutations is stored in a Sabre object. To do the actual updates, you must tell this object which properties you're going to process with the handle() method.
Calling the handle method is like telling the PropPatch object "I promise I can handle updating this property".
Read the PropPatch documentation for more info and examples.
mixed | $subscriptionId | |
\Sabre\DAV\PropPatch | $propPatch |
Implements Sabre\CalDAV\Backend\SubscriptionSupport.
Definition at line 112 of file MockSubscriptionSupport.php.
|
protected |
Definition at line 25 of file MockSubscriptionSupport.php.