1 | <?php |
||
26 | class AntivirusPlugin extends ServerPlugin { |
||
27 | const NS_OWNCLOUD = 'http://owncloud.org/ns'; |
||
28 | |||
29 | /** |
||
30 | * @var \Sabre\DAV\Server $server |
||
31 | */ |
||
32 | private $server; |
||
33 | |||
34 | /** |
||
35 | * @var EventDispatcherInterface |
||
36 | */ |
||
37 | private $dispatcher; |
||
38 | |||
39 | /** |
||
40 | * Constructor |
||
41 | * |
||
42 | * @param IUserSession $userSession |
||
43 | */ |
||
44 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * This initializes the plugin. |
||
53 | * |
||
54 | * This function is called by Sabre\DAV\Server, after |
||
55 | * addPlugin is called. |
||
56 | * |
||
57 | * This method should set up the required event subscriptions. |
||
58 | * |
||
59 | * @param Server $server |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | function initialize(Server $server) { |
||
67 | |||
68 | |||
69 | /** |
||
70 | * @param string $source |
||
71 | * @param string $destination |
||
72 | * |
||
73 | * @return bool|void |
||
74 | * @throws \Sabre\DAV\Exception\NotFound |
||
75 | */ |
||
76 | public function beforeMove($source, $destination) { |
||
94 | } |
||
95 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.