friendica-addons/dav/SabreDAV/tests/Sabre/DAV/TestPlugin.php

33 lines
495 B
PHP
Raw Normal View History

2012-06-03 14:19:28 -04:00
<?php
class Sabre_DAV_TestPlugin extends Sabre_DAV_ServerPlugin {
public $beforeMethod;
function getFeatures() {
return array('drinking');
}
function getHTTPMethods($uri) {
return array('BEER','WINE');
}
function initialize(Sabre_DAV_Server $server) {
$server->subscribeEvent('beforeMethod',array($this,'beforeMethod'));
}
function beforeMethod($method) {
$this->beforeMethod = $method;
return true;
}
}