Lines Matching refs:lockInfo
188 $lockInfo = $this->parseLockRequest($body);
189 $lockInfo->depth = $this->server->getHTTPDepth();
190 $lockInfo->uri = $uri;
191 if ($existingLock && $lockInfo->scope != LockInfo::SHARED)
223 $lockInfo = $found;
226 if ($uri != $lockInfo->uri) $uri = $lockInfo->uri;
230 if ($timeout = $this->getTimeoutHeader()) $lockInfo->timeout = $timeout;
252 $this->lockNode($uri, $lockInfo);
255 $response->setHeader('Lock-Token', '<opaquelocktoken:' . $lockInfo->token . '>');
257 $response->setBody($this->generateLockResponse($lockInfo));
334 * @param LockInfo $lockInfo
337 function lockNode($uri, LockInfo $lockInfo) { argument
339 if (!$this->server->emit('beforeLock', [$uri, $lockInfo])) return;
340 return $this->locksBackend->lock($uri, $lockInfo);
350 * @param LockInfo $lockInfo
353 function unlockNode($uri, LockInfo $lockInfo) { argument
355 if (!$this->server->emit('beforeUnlock', [$uri, $lockInfo])) return;
356 return $this->locksBackend->unlock($uri, $lockInfo);
391 * @param LockInfo $lockInfo
394 protected function generateLockResponse(LockInfo $lockInfo) { argument
398 new DAV\Xml\Property\LockDiscovery([$lockInfo])
558 $lockInfo = new LockInfo();
560 $lockInfo->owner = $result->owner;
561 $lockInfo->token = DAV\UUIDUtil::getUUID();
562 $lockInfo->scope = $result->scope;
564 return $lockInfo;