mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-05 03:23:17 +00:00
33 lines
495 B
PHP
33 lines
495 B
PHP
|
<?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;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|