ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\TestPlugin Class Reference
+ Inheritance diagram for Sabre\DAV\TestPlugin:
+ Collaboration diagram for Sabre\DAV\TestPlugin:

Public Member Functions

 getFeatures ()
 
 getHTTPMethods ($uri)
 
 initialize (Server $server)
 
 beforeMethod (RequestInterface $request, ResponseInterface $response)
 
- 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...
 

Data Fields

 $beforeMethod
 

Detailed Description

Definition at line 8 of file TestPlugin.php.

Member Function Documentation

◆ beforeMethod()

Sabre\DAV\TestPlugin::beforeMethod ( RequestInterface  $request,
ResponseInterface  $response 
)

Definition at line 30 of file TestPlugin.php.

References Sabre\HTTP\RequestInterface\getMethod().

30  {
31 
32  $this->beforeMethod = $request->getMethod();
33  return true;
34 
35  }
foreach($paths as $path) $request
Definition: asyncclient.php:32
beforeMethod(RequestInterface $request, ResponseInterface $response)
Definition: TestPlugin.php:30
+ Here is the call graph for this function:

◆ getFeatures()

Sabre\DAV\TestPlugin::getFeatures ( )

Definition at line 12 of file TestPlugin.php.

12  {
13 
14  return ['drinking'];
15 
16  }

◆ getHTTPMethods()

Sabre\DAV\TestPlugin::getHTTPMethods (   $uri)

Definition at line 18 of file TestPlugin.php.

18  {
19 
20  return ['BEER','WINE'];
21 
22  }

◆ initialize()

Sabre\DAV\TestPlugin::initialize ( Server  $server)

Definition at line 24 of file TestPlugin.php.

References Sabre\Event\EventEmitterInterface\on().

24  {
25 
26  $server->on('beforeMethod', [$this, 'beforeMethod']);
27 
28  }
$server
Definition: sabredav.php:48
+ Here is the call graph for this function:

Field Documentation

◆ $beforeMethod

Sabre\DAV\TestPlugin::$beforeMethod

Definition at line 10 of file TestPlugin.php.


The documentation for this class was generated from the following file: