ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
The baseclass for all server plugins. More...
Public Member Functions | |
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... | |
The baseclass for all server plugins.
Plugins can modify or extend the servers behaviour.
Definition at line 14 of file ServerPlugin.php.
Sabre\DAV\ServerPlugin::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 37 of file ServerPlugin.php.
Sabre\DAV\ServerPlugin::getHTTPMethods | ( | $path | ) |
Use this method to tell the server this plugin defines additional HTTP methods.
This method is passed a uri. It should only return HTTP methods that are available for the specified uri.
string | $path |
Definition at line 53 of file ServerPlugin.php.
Sabre\DAV\ServerPlugin::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 100 of file ServerPlugin.php.
References Sabre\DAV\ServerPlugin\getPluginName().
Sabre\DAV\ServerPlugin::getPluginName | ( | ) |
Returns a plugin name.
Using this name other plugins will be able to access other plugins using ::getPlugin
Definition at line 67 of file ServerPlugin.php.
Referenced by Sabre\DAV\Server\addPlugin(), and Sabre\DAV\ServerPlugin\getPluginInfo().
Sabre\DAV\ServerPlugin::getSupportedReportSet | ( | $uri | ) |
Returns a list of reports this plugin supports.
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
string | $uri |
Definition at line 83 of file ServerPlugin.php.
|
abstract |
This initializes the plugin.
This function is called by Sabre, after addPlugin is called.
This method should set up the required event subscriptions.
Server | $server |
Referenced by Sabre\DAV\Server\addPlugin().