@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | /** @var Tree */ |
34 | 34 | private $tree; |
35 | 35 | |
36 | + /** |
|
37 | + * @param Tree $tree |
|
38 | + */ |
|
36 | 39 | public function __construct($tree) { |
37 | 40 | $this->tree = $tree; |
38 | 41 | } |
@@ -75,7 +78,7 @@ discard block |
||
75 | 78 | * |
76 | 79 | * @param string $uri |
77 | 80 | * @param Locks\LockInfo $lockInfo |
78 | - * @return bool |
|
81 | + * @return boolean|null |
|
79 | 82 | */ |
80 | 83 | function lock($uri, Locks\LockInfo $lockInfo) { |
81 | 84 | // TODO: Implement lock() method. |
@@ -86,7 +89,7 @@ discard block |
||
86 | 89 | * |
87 | 90 | * @param string $uri |
88 | 91 | * @param Locks\LockInfo $lockInfo |
89 | - * @return bool |
|
92 | + * @return boolean|null |
|
90 | 93 | */ |
91 | 94 | function unlock($uri, Locks\LockInfo $lockInfo) { |
92 | 95 | // TODO: Implement unlock() method. |
@@ -55,7 +55,6 @@ |
||
55 | 55 | use OCP\Files\Storage\IPersistentLockingStorage; |
56 | 56 | use OCP\Files\Storage\IVersionedStorage; |
57 | 57 | use OCP\Lock\ILockingProvider; |
58 | -use Sabre\DAV\Exception\NotImplemented; |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * Storage backend class for providing common filesystem operation methods |
@@ -387,7 +387,7 @@ |
||
387 | 387 | } |
388 | 388 | |
389 | 389 | /** |
390 | - * @param $returnChildLocks |
|
390 | + * @param boolean $returnChildLocks |
|
391 | 391 | * @return Lock[] |
392 | 392 | */ |
393 | 393 | public function getLocks($returnChildLocks) { |
@@ -30,6 +30,10 @@ |
||
30 | 30 | parent::__construct($db, 'persistent_locks', null); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param integer $storageId |
|
35 | + * @param boolean $returnChildLocks |
|
36 | + */ |
|
33 | 37 | public function getLocksByPath($storageId, $internalPath, $returnChildLocks) { |
34 | 38 | $query = $this->db->getQueryBuilder(); |
35 | 39 | $pathPattern = $this->db->escapeLikeParameter($internalPath) . '%'; |