69 $server->
on(
'propFind', [$this,
'propFind'], 130);
70 $server->
on(
'propPatch', [$this,
'propPatch'], 300);
71 $server->
on(
'afterMove', [$this,
'afterMove']);
72 $server->
on(
'afterUnbind', [$this,
'afterUnbind']);
91 $this->backend->propFind($propFind->
getPath(), $propFind);
109 $this->backend->propPatch(
$path, $propPatch);
126 $this->backend->delete(
$path);
161 return 'property-storage';
180 'description' =>
'This plugin allows any arbitrary WebDAV property to be set on any resource.',
181 'link' =>
'http://sabre.io/dav/property-storage/',
The baseclass for all server plugins.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
This class represents a set of properties that are going to be updated.
getPluginInfo()
Returns a bunch of meta-data about the plugin.
getPath()
Returns the path this PROPFIND request is for.
This class holds all the information about a PROPFIND request.
afterUnbind($path)
Called after a node is deleted.
propPatch($path, PropPatch $propPatch)
Called during PROPPATCH operations.
afterMove($source, $destination)
Called after a node is moved.
The INode interface is the base interface, and the parent class of both ICollection and IFile...
getPluginName()
Returns a plugin name.
propFind(PropFind $propFind, INode $node)
Called during PROPFIND operations.
__construct(Backend\BackendInterface $backend)
Creates the plugin.
initialize(Server $server)
This initializes the plugin.