ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This plugin implements support for caldav sharing. More...
Public Member Functions | |
getFeatures () | |
This method should return a list of server-features. More... | |
getPluginName () | |
Returns a plugin name. More... | |
initialize (DAV\Server $server) | |
This initializes the plugin. More... | |
propFindEarly (DAV\PropFind $propFind, DAV\INode $node) | |
This event is triggered when properties are requested for a certain node. More... | |
propFindLate (DAV\PropFind $propFind, DAV\INode $node) | |
This method is triggered after all properties have been retrieved. More... | |
propPatch ($path, DAV\PropPatch $propPatch) | |
This method is trigged when a user attempts to update a node's properties. More... | |
httpPost (RequestInterface $request, ResponseInterface $response) | |
We intercept this to handle POST requests on calendars. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Public Member Functions inherited from Sabre\DAV\ServerPlugin | |
initialize (Server $server) | |
This initializes the plugin. More... | |
getFeatures () | |
This method should return a list of server-features. More... | |
getHTTPMethods ($path) | |
Use this method to tell the server this plugin defines additional HTTP methods. More... | |
getPluginName () | |
Returns a plugin name. More... | |
getSupportedReportSet ($uri) | |
Returns a list of reports this plugin supports. More... | |
getPluginInfo () | |
Returns a bunch of meta-data about the plugin. More... | |
Protected Attributes | |
$server | |
This plugin implements support for caldav sharing.
This spec is defined at: http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk/doc/Extensions/caldav-sharing.txt
See: Sabre for all the documentation.
Note: This feature is experimental, and may change in between different SabreDAV versions.
Definition at line 26 of file SharingPlugin.php.
Sabre\CalDAV\SharingPlugin::getFeatures | ( | ) |
This method should return a list of server-features.
This is for example 'versioning' and is added to the DAV: header in an OPTIONS response.
Definition at line 43 of file SharingPlugin.php.
Sabre\CalDAV\SharingPlugin::getPluginInfo | ( | ) |
Returns a bunch of meta-data about the plugin.
Providing this information is optional, and is mainly displayed by the Browser plugin.
The description key in the returned array may contain html and will not be sanitized.
Definition at line 392 of file SharingPlugin.php.
References Sabre\CalDAV\SharingPlugin\getPluginName().
Sabre\CalDAV\SharingPlugin::getPluginName | ( | ) |
Returns a plugin name.
Using this name other plugins will be able to access other plugins using Sabre::getPlugin
Definition at line 57 of file SharingPlugin.php.
Referenced by Sabre\CalDAV\SharingPlugin\getPluginInfo().
Sabre\CalDAV\SharingPlugin::httpPost | ( | RequestInterface | $request, |
ResponseInterface | $response | ||
) |
We intercept this to handle POST requests on calendars.
RequestInterface | $request | |
ResponseInterface | $response |
Definition at line 228 of file SharingPlugin.php.
References $contentType, $message, $path, $url, Sabre\HTTP\MessageInterface\getBodyAsString(), Sabre\HTTP\MessageInterface\getHeader(), Sabre\HTTP\RequestInterface\getPath(), Sabre\HTTP\RequestInterface\getUrl(), Sabre\CalDAV\Plugin\NS_CALENDARSERVER, Sabre\HTTP\MessageInterface\setBody(), Sabre\HTTP\MessageInterface\setHeader(), and Sabre\HTTP\ResponseInterface\setStatus().
Sabre\CalDAV\SharingPlugin::initialize | ( | DAV\Server | $server | ) |
This initializes the plugin.
This function is called by Sabre, after addPlugin is called.
This method should set up the required event subscriptions.
DAV\Server | $server |
Definition at line 74 of file SharingPlugin.php.
References Sabre\CalDAV\SharingPlugin\$server, and Sabre\CalDAV\Plugin\NS_CALENDARSERVER.
Sabre\CalDAV\SharingPlugin::propFindEarly | ( | DAV\PropFind | $propFind, |
DAV\INode | $node | ||
) |
This event is triggered when properties are requested for a certain node.
This allows us to inject any properties early.
DAV\PropFind | $propFind | |
DAV\INode | $node |
Definition at line 109 of file SharingPlugin.php.
References Sabre\CalDAV\Plugin\NS_CALENDARSERVER.
Sabre\CalDAV\SharingPlugin::propFindLate | ( | DAV\PropFind | $propFind, |
DAV\INode | $node | ||
) |
This method is triggered after all properties have been retrieved.
This allows us to inject the correct resourcetype for calendars that have been shared.
DAV\PropFind | $propFind | |
DAV\INode | $node |
Definition at line 158 of file SharingPlugin.php.
References Sabre\CalDAV\Plugin\NS_CALENDARSERVER.
Sabre\CalDAV\SharingPlugin::propPatch | ( | $path, | |
DAV\PropPatch | $propPatch | ||
) |
This method is trigged when a user attempts to update a node's properties.
A previous draft of the sharing spec stated that it was possible to use PROPPATCH to remove 'shared-owner' from the resourcetype, thus unsharing the calendar.
Even though this is no longer in the current spec, we keep this around because OS X 10.7 may still make use of this feature.
string | $path | |
DAV\PropPatch | $propPatch |
Definition at line 197 of file SharingPlugin.php.
References $path, Sabre\DAV\Sharing\Plugin\ACCESS_NOACCESS, Sabre\DAV\Sharing\Plugin\ACCESS_NOTSHARED, Sabre\DAV\Sharing\Plugin\ACCESS_SHAREDOWNER, and Sabre\CalDAV\Plugin\NS_CALENDARSERVER.
|
protected |
Definition at line 33 of file SharingPlugin.php.
Referenced by Sabre\CalDAV\SharingPlugin\initialize().