mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-10-14 10:53:07 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
32
dav/SabreDAV/tests/Sabre/DAV/TestPlugin.php
Normal file
32
dav/SabreDAV/tests/Sabre/DAV/TestPlugin.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue