aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/DAV/Locks/Plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/lib/DAV/Locks/Plugin.php')
-rw-r--r--vendor/sabre/dav/lib/DAV/Locks/Plugin.php24
1 files changed, 21 insertions, 3 deletions
diff --git a/vendor/sabre/dav/lib/DAV/Locks/Plugin.php b/vendor/sabre/dav/lib/DAV/Locks/Plugin.php
index 1e9b6839e..6d3e9b883 100644
--- a/vendor/sabre/dav/lib/DAV/Locks/Plugin.php
+++ b/vendor/sabre/dav/lib/DAV/Locks/Plugin.php
@@ -40,6 +40,8 @@ class Plugin extends DAV\ServerPlugin
/**
* __construct.
+ *
+ * @param Backend\BackendInterface $locksBackend
*/
public function __construct(Backend\BackendInterface $locksBackend)
{
@@ -50,6 +52,8 @@ class Plugin extends DAV\ServerPlugin
* Initializes the plugin.
*
* This method is automatically called by the Server class after addPlugin.
+ *
+ * @param DAV\Server $server
*/
public function initialize(DAV\Server $server)
{
@@ -80,6 +84,9 @@ class Plugin extends DAV\ServerPlugin
/**
* This method is called after most properties have been found
* it allows us to add in any Lock-related properties.
+ *
+ * @param DAV\PropFind $propFind
+ * @param DAV\INode $node
*/
public function propFind(DAV\PropFind $propFind, DAV\INode $node)
{
@@ -152,6 +159,9 @@ class Plugin extends DAV\ServerPlugin
*
* Additionally, a lock can be requested for a non-existent file. In these case we're obligated to create an empty file as per RFC4918:S7.3
*
+ * @param RequestInterface $request
+ * @param ResponseInterface $response
+ *
* @return bool
*/
public function httpLock(RequestInterface $request, ResponseInterface $response)
@@ -250,6 +260,9 @@ class Plugin extends DAV\ServerPlugin
*
* This WebDAV method allows you to remove a lock from a node. The client should provide a valid locktoken through the Lock-token http header
* The server should return 204 (No content) on success
+ *
+ * @param RequestInterface $request
+ * @param ResponseInterface $response
*/
public function httpUnlock(RequestInterface $request, ResponseInterface $response)
{
@@ -305,7 +318,8 @@ class Plugin extends DAV\ServerPlugin
* All the locking information is supplied in the lockInfo object. The object has a suggested timeout, but this can be safely ignored
* It is important that if the existing timeout is ignored, the property is overwritten, as this needs to be sent back to the client
*
- * @param string $uri
+ * @param string $uri
+ * @param LockInfo $lockInfo
*
* @return bool
*/
@@ -323,7 +337,8 @@ class Plugin extends DAV\ServerPlugin
*
* This method removes a lock from a uri. It is assumed all the supplied information is correct and verified
*
- * @param string $uri
+ * @param string $uri
+ * @param LockInfo $lockInfo
*
* @return bool
*/
@@ -365,6 +380,8 @@ class Plugin extends DAV\ServerPlugin
/**
* Generates the response for successful LOCK requests.
*
+ * @param LockInfo $lockInfo
+ *
* @return string
*/
protected function generateLockResponse(LockInfo $lockInfo)
@@ -384,7 +401,8 @@ class Plugin extends DAV\ServerPlugin
* must be present in the request, and reject requests without the proper
* tokens.
*
- * @param mixed $conditions
+ * @param RequestInterface $request
+ * @param mixed $conditions
*/
public function validateTokens(RequestInterface $request, &$conditions)
{