Lines Matching full:lock

62         $this->server->xml->elementMap['{DAV:}lockinfo'] = 'Sabre\\DAV\\Xml\\Request\\Lock';
64 $server->on('method:LOCK', [$this, 'httpLock']);
88 * it allows us to add in any Lock-related properties
119 return ['LOCK','UNLOCK'];
138 * Returns all lock information on a particular uri
159 …* The WebDAV lock request can be operated to either create a new lock on a file, or to refresh an …
160 …* If a new lock is created, a full XML body should be supplied, containing information about the l…
161 * of lock (shared or exclusive) and the owner of the lock
163 …* If a lock is to be refreshed, no body should be supplied and there should be a valid If header c…
165 …* Additionally, a lock can be requested for a non-existent file. In these case we're obligated to …
178 // This is a new lock request
196 // Gonna check if this was a lock refresh.
217 throw new DAV\Exception\BadRequest('An xml body is required for lock requests');
222 // This must have been a lock refresh
255 $response->setHeader('Lock-Token', '<opaquelocktoken:' . $lockInfo->token . '>');
268 …WebDAV method allows you to remove a lock from a node. The client should provide a valid locktoken…
277 $lockToken = $request->getHeader('Lock-Token');
280 if (!$lockToken) throw new DAV\Exception\BadRequest('No lock token was supplied');
285 // Windows sometimes forgets to include < and > in the Lock-Token
289 foreach ($locks as $lock) {
291 if ('<opaquelocktoken:' . $lock->token . '>' == $lockToken) {
293 $this->unlockNode($path, $lock);
321 foreach ($locks as $lock) {
322 $this->unlockNode($path, $lock);
340 return $this->locksBackend->lock($uri, $lockInfo);
347 …* This method removes a lock from a uri. It is assumed all the supplied information is correct and…
389 * Generates the response for successful LOCK requests
405 * It's a moment where this plugin can check all the supplied lock tokens
423 // resources, and we don't need to check the lock-states for.
458 case 'LOCK' :
473 foreach ($mustLocks as $lock) $tmp[$lock->token] = $lock;
480 // Lock tokens always start with opaquelocktoken:
506 // lock-token, but it was not in 'mustLocks'.
514 // lock-token that was expired.
527 // If we get all the way here, the lock-token was
546 * Parses a webdav lock xml body, and returns a new Sabre\DAV\Locks\LockInfo object
583 … locks plugin turns this server into a class-2 WebDAV server and adds support for LOCK and UNLOCK',