ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Every CalDAV backend must at least implement this interface. 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... | |
![]() | |
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 its objects. More... | |
getCalendarObjects ($calendarId) | |
Returns all calendar objects within a calendar. More... | |
getCalendarObject ($calendarId, $objectUri) | |
Returns information from a single calendar object, based on it's object uri. More... | |
getMultipleCalendarObjects ($calendarId, array $uris) | |
Returns a list of calendar objects. 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... | |
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... | |
Every CalDAV backend must at least implement this interface.
Definition at line 14 of file SubscriptionSupport.php.
Sabre\CalDAV\Backend\SubscriptionSupport::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 |
Implemented in Sabre\CalDAV\Backend\PDO, and Sabre\CalDAV\Backend\MockSubscriptionSupport.
Sabre\CalDAV\Backend\SubscriptionSupport::deleteSubscription | ( | $subscriptionId | ) |
Deletes a subscription.
mixed | $subscriptionId |
Implemented in Sabre\CalDAV\Backend\PDO, and Sabre\CalDAV\Backend\MockSubscriptionSupport.
Sabre\CalDAV\Backend\SubscriptionSupport::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 |
Implemented in Sabre\CalDAV\Backend\PDO, and Sabre\CalDAV\Backend\MockSubscriptionSupport.
Sabre\CalDAV\Backend\SubscriptionSupport::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 |
Implemented in Sabre\CalDAV\Backend\PDO, and Sabre\CalDAV\Backend\MockSubscriptionSupport.