Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821082
TestPlugin.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
594 B
Subscribers
None
TestPlugin.php
View Options
<?php
namespace
Sabre\DAV
;
use
Sabre\HTTP\RequestInterface
,
Sabre\HTTP\ResponseInterface
;
class
TestPlugin
extends
ServerPlugin
{
public
$beforeMethod
;
function
getFeatures
()
{
return
[
'drinking'
];
}
function
getHTTPMethods
(
$uri
)
{
return
[
'BEER'
,
'WINE'
];
}
function
initialize
(
Server
$server
)
{
$server
->
on
(
'beforeMethod'
,
[
$this
,
'beforeMethod'
]);
}
function
beforeMethod
(
RequestInterface
$request
,
ResponseInterface
$response
)
{
$this
->
beforeMethod
=
$request
->
getMethod
();
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Dec 23, 2:42 AM (1 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914588
Default Alt Text
TestPlugin.php (594 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment