aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php
blob: 9cf5edbb0ef3cbe8b9c314461af49aec96ca82b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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;

    }

}