4 * The Lock manager allows you to handle all file-locks centrally.
6 * This is an alternative approach to doing this on a per-node basis
10 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
11 * @author Evert Pot (http://www.rooftopsolutions.nl/)
12 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
14 abstract class Sabre_DAV_Locks_Backend_Abstract {
17 * Returns a list of Sabre_DAV_Locks_LockInfo objects
19 * This method should return all the locks for a particular uri, including
20 * locks that might be set on a parent uri.
22 * If returnChildLocks is set to true, this method should also look for
23 * any locks in the subtree of the uri for locks.
26 * @param bool $returnChildLocks
29 abstract function getLocks($uri, $returnChildLocks);
35 * @param Sabre_DAV_Locks_LockInfo $lockInfo
38 abstract function lock($uri,Sabre_DAV_Locks_LockInfo $lockInfo);
41 * Removes a lock from a uri
44 * @param Sabre_DAV_Locks_LockInfo $lockInfo
47 abstract function unlock($uri,Sabre_DAV_Locks_LockInfo $lockInfo);