ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__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 | |
$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... | |
Sabre\CalDAV\Backend\Mock::__construct | ( | array | $calendars = [] , |
array | $calendarData = [] |
||
) |
Definition at line 13 of file Mock.php.
References $calendar, Sabre\CalDAV\Backend\Mock\$calendarData, Sabre\CalDAV\Backend\Mock\$calendars, and Sabre\DAV\UUIDUtil\getUUID().
Sabre\CalDAV\Backend\Mock::createCalendar | ( | $principalUri, | |
$calendarUri, | |||
array | $properties | ||
) |
Creates a new calendar for a principal.
If the creation was a success, an id must be returned that can be used to reference this calendar in other methods, such as updateCalendar.
This function must return a server-wide unique id that can be used later to reference the calendar.
string | $principalUri | |
string | $calendarUri | |
array | $properties |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 70 of file Mock.php.
References $id, Sabre\DAV\UUIDUtil\getUUID(), and Sabre\CalDAV\Plugin\NS_CALDAV.
Sabre\CalDAV\Backend\Mock::createCalendarObject | ( | $calendarId, | |
$objectUri, | |||
$calendarData | |||
) |
Creates a new calendar object.
string | $calendarId | |
string | $objectUri | |
string | $calendarData |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 215 of file Mock.php.
References Sabre\CalDAV\Backend\Mock\$calendarData.
Sabre\CalDAV\Backend\Mock::deleteCalendar | ( | $calendarId | ) |
Delete a calendar and all it's objects.
string | $calendarId |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 130 of file Mock.php.
References $calendar.
Sabre\CalDAV\Backend\Mock::deleteCalendarObject | ( | $calendarId, | |
$objectUri | |||
) |
Deletes an existing calendar object.
string | $calendarId | |
string | $objectUri |
Implements Sabre\CalDAV\Backend\BackendInterface.
Sabre\CalDAV\Backend\Mock::getCalendarObject | ( | $calendarId, | |
$objectUri | |||
) |
Returns information from a single calendar object, based on it's object uri.
The object uri is only the basename, or filename and not a full path.
The returned array must have the same keys as getCalendarObjects. The 'calendardata' object is required here though, while it's not required for getCalendarObjects.
This method must return null if the object did not exist.
mixed | $calendarId | |
string | $objectUri |
Implements Sabre\CalDAV\Backend\BackendInterface.
Sabre\CalDAV\Backend\Mock::getCalendarObjects | ( | $calendarId | ) |
Returns all calendar objects within a calendar object.
Every item contains an array with the following keys:
Note that the etag is optional, but it's highly encouraged to return for speed reasons.
The calendardata is also optional. If it's not returned 'getCalendarObject' will be called later, which is expected to return calendardata.
string | $calendarId |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 162 of file Mock.php.
Sabre\CalDAV\Backend\Mock::getCalendarsForUser | ( | $principalUri | ) |
Returns a list of calendars for a principal.
Every project is an array with the following keys:
Furthermore it can contain webdav properties in clark notation. A very common one is '{DAV:}displayname'.
string | $principalUri |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 43 of file Mock.php.
Sabre\CalDAV\Backend\Mock::updateCalendar | ( | $calendarId, | |
\Sabre\DAV\PropPatch | $propPatch | ||
) |
Updates properties for a calendar.
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 | $calendarId | |
\Sabre\DAV\PropPatch | $propPatch |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 100 of file Mock.php.
References $calendar.
Sabre\CalDAV\Backend\Mock::updateCalendarObject | ( | $calendarId, | |
$objectUri, | |||
$calendarData | |||
) |
Updates an existing calendarobject, based on it's uri.
string | $calendarId | |
string | $objectUri | |
string | $calendarData |
Implements Sabre\CalDAV\Backend\BackendInterface.
Definition at line 234 of file Mock.php.
References Sabre\CalDAV\Backend\Mock\$calendarData.
|
protected |
Definition at line 10 of file Mock.php.
Referenced by Sabre\CalDAV\Backend\Mock\__construct(), Sabre\CalDAV\Backend\MockSharing\__construct(), Sabre\CalDAV\Backend\Mock\createCalendarObject(), and Sabre\CalDAV\Backend\Mock\updateCalendarObject().
|
protected |
Definition at line 11 of file Mock.php.
Referenced by Sabre\CalDAV\Backend\Mock\__construct(), Sabre\CalDAV\Backend\MockSharing\__construct(), and Sabre\CalDAV\Backend\MockSharing\getCalendarsForUser().