blob: 9cf5edbb0ef3cbe8b9c314461af49aec96ca82b0 (
plain) (
tree)
|
|
<?php
namespace Sabre\DAV;
class TestPlugin extends ServerPlugin {
public $beforeMethod;
function getFeatures() {
return array('drinking');
}
function getHTTPMethods($uri) {
return array('BEER','WINE');
}
function initialize(Server $server) {
$server->subscribeEvent('beforeMethod',array($this,'beforeMethod'));
}
function beforeMethod($method) {
$this->beforeMethod = $method;
return true;
}
}
|