Lines Matching refs:DAV
3 namespace Sabre\DAV\Locks;
5 use Sabre\DAV; alias
23 class Plugin extends DAV\ServerPlugin {
35 * @var DAV\Server
55 * @param DAV\Server $server
58 function initialize(DAV\Server $server) {
90 * @param DAV\PropFind $propFind
91 * @param DAV\INode $node
94 function propFind(DAV\PropFind $propFind, DAV\INode $node) {
97 return new DAV\Xml\Property\SupportedLock();
100 return new DAV\Xml\Property\LockDiscovery(
184 throw new DAV\Exception\ConflictingLock($existingLock);
192 throw new DAV\Exception\ConflictingLock($existingLock);
215 throw new DAV\Exception\Locked(reset($existingLocks));
217 throw new DAV\Exception\BadRequest('An xml body is required for lock requests');
244 } catch (DAV\Exception\NotFound $e) {
280 if (!$lockToken) throw new DAV\Exception\BadRequest('No lock token was supplied');
306 throw new DAV\Exception\LockTokenMatchesRequestUri();
376 else throw new DAV\Exception\BadRequest('Invalid HTTP timeout header');
398 new DAV\Xml\Property\LockDiscovery([$lockInfo])
539 throw new DAV\Exception\Locked(reset($mustLocks));
561 $lockInfo->token = DAV\UUIDUtil::getUUID();