ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This object represents a CalDAV calendar. More...
Public Member Functions | |
__construct (Backend\BackendInterface $caldavBackend, $calendarInfo) | |
Constructor. More... | |
getName () | |
Returns the name of the calendar. More... | |
propPatch (PropPatch $propPatch) | |
Updates properties on this node. More... | |
getProperties ($requestedProperties) | |
Returns the list of properties. More... | |
getChild ($name) | |
Returns a calendar object. More... | |
getChildren () | |
Returns the full list of calendar objects. More... | |
getMultipleChildren (array $paths) | |
This method receives a list of paths in it's first argument. More... | |
childExists ($name) | |
Checks if a child-node exists. More... | |
createDirectory ($name) | |
Creates a new directory. More... | |
createFile ($name, $calendarData=null) | |
Creates a new file. More... | |
delete () | |
Deletes the calendar. More... | |
setName ($newName) | |
Renames the calendar. More... | |
getLastModified () | |
Returns the last modification date as a unix timestamp. More... | |
getOwner () | |
Returns the owner principal. More... | |
getACL () | |
Returns a list of ACE's for this node. More... | |
getChildACL () | |
This method returns the ACL's for calendar objects in this calendar. More... | |
calendarQuery (array $filters) | |
Performs a calendar-query on the contents of this calendar. More... | |
getSyncToken () | |
This method returns the current sync-token for this collection. More... | |
getChanges ($syncToken, $syncLevel, $limit=null) | |
The getChanges method returns all the changes that have happened, since the specified syncToken and the current collection. More... | |
![]() | |
getGroup () | |
Returns a group principal. More... | |
setACL (array $acl) | |
Updates the ACL. More... | |
getSupportedPrivilegeSet () | |
Returns the list of supported privileges for this node. More... | |
Protected Attributes | |
$calendarInfo | |
$caldavBackend | |
This object represents a CalDAV calendar.
A calendar can contain multiple TODO and or Events. These are represented as objects.
Definition at line 19 of file Calendar.php.
Sabre\CalDAV\Calendar::__construct | ( | Backend\BackendInterface | $caldavBackend, |
$calendarInfo | |||
) |
Constructor.
Backend\BackendInterface | $caldavBackend | |
array | $calendarInfo |
Definition at line 43 of file Calendar.php.
References Sabre\CalDAV\Calendar\$caldavBackend, and Sabre\CalDAV\Calendar\$calendarInfo.
Sabre\CalDAV\Calendar::calendarQuery | ( | array | $filters | ) |
Performs a calendar-query on the contents of this calendar.
The calendar-query is defined in RFC4791 : CalDAV. Using the calendar-query it is possible for a client to request a specific set of object, based on contents of iCalendar properties, date-ranges and iCalendar component types (VTODO, VEVENT).
This method should just return a list of (relative) urls that match this query.
The list of filters are specified as an array. The exact array is documented by Sabre.
array | $filters |
Implements Sabre\CalDAV\ICalendarObjectContainer.
Definition at line 370 of file Calendar.php.
Sabre\CalDAV\Calendar::childExists | ( | $name | ) |
Checks if a child-node exists.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 163 of file Calendar.php.
References $name.
Sabre\CalDAV\Calendar::createDirectory | ( | $name | ) |
Creates a new directory.
We actually block this, as subdirectories are not allowed in calendars.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 181 of file Calendar.php.
Sabre\CalDAV\Calendar::createFile | ( | $name, | |
$calendarData = null |
|||
) |
Creates a new file.
The contents of the new file must be a valid ICalendar string.
string | $name | |
resource | $calendarData |
Implements Sabre\DAV\ICollection.
Definition at line 196 of file Calendar.php.
References $name.
Sabre\CalDAV\Calendar::delete | ( | ) |
Deletes the calendar.
Implements Sabre\DAV\INode.
Definition at line 210 of file Calendar.php.
Sabre\CalDAV\Calendar::getACL | ( | ) |
Returns a list of ACE's for this node.
Each ACE has the following properties:
Implements Sabre\DAVACL\IACL.
Definition at line 265 of file Calendar.php.
References Sabre\CalDAV\Calendar\getOwner(), and Sabre\CalDAV\Plugin\NS_CALDAV.
Sabre\CalDAV\Calendar::getChanges | ( | $syncToken, | |
$syncLevel, | |||
$limit = null |
|||
) |
The getChanges method returns all the changes that have happened, since the specified syncToken and the current collection.
This function should return an array, such as the following:
[ 'syncToken' => 'The current synctoken', 'added' => [ 'new.txt', ], 'modified' => [ 'modified.txt', ], 'deleted' => [ 'foo.php.bak', 'old.txt' ] ];
The syncToken property should reflect the current syncToken of the collection, as reported getSyncToken(). This is needed here too, to ensure the operation is atomic.
If the syncToken is specified as null, this is an initial sync, and all members should be reported.
The modified property is an array of nodenames that have changed since the last token.
The deleted property is an array with nodenames, that have been deleted from collection.
The second argument is basically the 'depth' of the report. If it's 1, you only have to report changes that happened only directly in immediate descendants. If it's 2, it should also include changes from the nodes below the child collections. (grandchildren)
The third (optional) argument allows a client to specify how many results should be returned at most. If the limit is not specified, it should be treated as infinite.
If the limit (infinite or not) is higher than you're willing to return, you should throw a Sabre() exception.
If the syncToken is expired (due to data cleanup) or unknown, you must return null.
The limit is 'suggestive'. You are free to ignore it.
string | $syncToken | |
int | $syncLevel | |
int | $limit |
Implements Sabre\DAV\Sync\ISyncCollection.
Definition at line 457 of file Calendar.php.
Sabre\CalDAV\Calendar::getChild | ( | $name | ) |
Returns a calendar object.
The contained calendar objects are for example Events or Todo's.
string | $name |
Implements Sabre\DAV\ICollection.
Definition at line 107 of file Calendar.php.
References $name, and Sabre\CalDAV\Calendar\getChildACL().
Sabre\CalDAV\Calendar::getChildACL | ( | ) |
This method returns the ACL's for calendar objects in this calendar.
The result of this method automatically gets passed to the calendar-object nodes in the calendar.
Definition at line 314 of file Calendar.php.
References Sabre\CalDAV\Calendar\getOwner().
Referenced by Sabre\CalDAV\Calendar\getChild(), Sabre\CalDAV\Calendar\getChildren(), and Sabre\CalDAV\Calendar\getMultipleChildren().
Sabre\CalDAV\Calendar::getChildren | ( | ) |
Returns the full list of calendar objects.
Implements Sabre\DAV\ICollection.
Definition at line 124 of file Calendar.php.
References Sabre\CalDAV\Calendar\getChildACL().
Sabre\CalDAV\Calendar::getLastModified | ( | ) |
Returns the last modification date as a unix timestamp.
Implements Sabre\DAV\INode.
Definition at line 234 of file Calendar.php.
Sabre\CalDAV\Calendar::getMultipleChildren | ( | array | $paths | ) |
This method receives a list of paths in it's first argument.
It must return an array with Node objects.
If any children are not found, you do not have to return them.
string[] | $paths |
Implements Sabre\DAV\IMultiGet.
Definition at line 145 of file Calendar.php.
References Sabre\CalDAV\Calendar\getChildACL().
Sabre\CalDAV\Calendar::getName | ( | ) |
Returns the name of the calendar.
Implements Sabre\DAV\INode.
Definition at line 55 of file Calendar.php.
Sabre\CalDAV\Calendar::getOwner | ( | ) |
Returns the owner principal.
This must be a url to a principal, or null if there's no owner
Implements Sabre\DAVACL\IACL.
Definition at line 247 of file Calendar.php.
Referenced by Sabre\CalDAV\Calendar\getACL(), and Sabre\CalDAV\Calendar\getChildACL().
Sabre\CalDAV\Calendar::getProperties | ( | $requestedProperties | ) |
Returns the list of properties.
array | $requestedProperties |
Implements Sabre\DAV\IProperties.
Definition at line 85 of file Calendar.php.
References $response.
Sabre\CalDAV\Calendar::getSyncToken | ( | ) |
This method returns the current sync-token for this collection.
This can be any string.
If null is returned from this function, the plugin assumes there's no sync information available.
Implements Sabre\DAV\Sync\ISyncCollection.
Definition at line 385 of file Calendar.php.
Sabre\CalDAV\Calendar::propPatch | ( | PropPatch | $propPatch | ) |
Updates properties on this node.
This method received a PropPatch object, which contains all the information about the update.
To update specific properties, call the 'handle' method on this object. Read the PropPatch documentation for more information.
PropPatch | $propPatch |
Implements Sabre\DAV\IProperties.
Definition at line 73 of file Calendar.php.
Sabre\CalDAV\Calendar::setName | ( | $newName | ) |
Renames the calendar.
Note that most calendars use the {DAV:}displayname to display a name to display a name.
string | $newName |
Implements Sabre\DAV\INode.
Definition at line 223 of file Calendar.php.
|
protected |
Definition at line 35 of file Calendar.php.
Referenced by Sabre\CalDAV\Calendar\__construct().
|
protected |
Definition at line 28 of file Calendar.php.
Referenced by Sabre\CalDAV\Calendar\__construct().