Plugin
extends ServerPlugin
in package
Notifications plugin.
This plugin implements several features required by the caldav-notification draft specification.
Before version 2.1.0 this functionality was part of Sabre\CalDAV\Plugin but this has since been split up.
Tags
Table of Contents
- NS_CALENDARSERVER = 'http://calendarserver.org/ns/'
- This is the namespace for the proprietary calendarserver extensions.
- $server : Server
- Reference to the main server object.
- getFeatures() : array<string|int, mixed>
- This method should return a list of server-features.
- getHTTPMethods() : array<string|int, mixed>
- Use this method to tell the server this plugin defines additional HTTP methods.
- getPluginInfo() : array<string|int, mixed>
- Returns a bunch of meta-data about the plugin.
- getPluginName() : string
- Returns a plugin name.
- getSupportedReportSet() : array<string|int, mixed>
- Returns a list of reports this plugin supports.
- httpGet() : mixed
- This event is triggered before the usual GET request handler.
- initialize() : mixed
- This initializes the plugin.
- propFind() : mixed
- PropFind.
Constants
NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
public
mixed
NS_CALENDARSERVER
= 'http://calendarserver.org/ns/'
Properties
$server
Reference to the main server object.
protected
Server
$server
Methods
getFeatures()
This method should return a list of server-features.
public
getFeatures() : array<string|int, mixed>
This is for example 'versioning' and is added to the DAV: header in an OPTIONS response.
Return values
array<string|int, mixed> —getHTTPMethods()
Use this method to tell the server this plugin defines additional HTTP methods.
public
getHTTPMethods(string $path) : array<string|int, mixed>
This method is passed a uri. It should only return HTTP methods that are available for the specified uri.
Parameters
- $path : string
Return values
array<string|int, mixed> —getPluginInfo()
Returns a bunch of meta-data about the plugin.
public
getPluginInfo() : array<string|int, mixed>
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.
Return values
array<string|int, mixed> —getPluginName()
Returns a plugin name.
public
getPluginName() : string
Using this name other plugins will be able to access other plugins using \Sabre\DAV\Server::getPlugin
Return values
string —getSupportedReportSet()
Returns a list of reports this plugin supports.
public
getSupportedReportSet(string $uri) : array<string|int, mixed>
This will be used in the {DAV:}supported-report-set property. Note that you still need to subscribe to the 'report' event to actually implement them
Parameters
- $uri : string
Return values
array<string|int, mixed> —httpGet()
This event is triggered before the usual GET request handler.
public
httpGet(RequestInterface $request, ResponseInterface $response) : mixed
We use this to intercept GET calls to notification nodes, and return the proper response.
Parameters
- $request : RequestInterface
- $response : ResponseInterface
Return values
mixed —initialize()
This initializes the plugin.
public
initialize(Server $server) : mixed
This function is called by Sabre\DAV\Server, after addPlugin is called.
This method should set up the required event subscriptions.
Parameters
- $server : Server
Return values
mixed —propFind()
PropFind.
public
propFind(PropFind $propFind, INode $node) : mixed