35 $server->resourceTypeMapping[
'Sabre\\CalDAV\\Subscriptions\\ISubscription'] =
36 '{http://calendarserver.org/ns/}subscribed';
38 $server->xml->elementMap[
'{http://calendarserver.org/ns/}source'] =
39 'Sabre\\DAV\\Xml\\Property\\Href';
41 $server->
on(
'propFind', [$this,
'propFind'], 150);
55 return [
'calendarserver-subscribed'];
71 '{http://calendarserver.org/ns/}subscribed-strip-alarms',
72 '{http://calendarserver.org/ns/}subscribed-strip-attachments',
73 '{http://calendarserver.org/ns/}subscribed-strip-todos',
76 foreach ($props as $prop) {
78 if ($propFind->
getStatus($prop) === 200) {
79 $propFind->
set($prop,
'', 200);
96 return 'subscriptions';
115 'description' =>
'This plugin allows users to store iCalendar subscriptions in their calendar-home.',
The baseclass for all server plugins.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
getFeatures()
This method should return a list of server-features.
This class holds all the information about a PROPFIND request.
set($propertyName, $value, $status=null)
Sets the value of the property.
getStatus($propertyName)
Returns the current status code for a property name.
getPluginName()
Returns a plugin name.
getPluginName()
Returns a plugin name.
propFind(PropFind $propFind, INode $node)
Triggered after properties have been fetched.
The INode interface is the base interface, and the parent class of both ICollection and IFile...
getPluginInfo()
Returns a bunch of meta-data about the plugin.
initialize(Server $server)
This initializes the plugin.