public static function Unlock($path, $token)
 {
     $dbResult = CDavVirtualFileSystem::GetList(array(), array("PATH" => $path, "ID" => $token), false, false, array("ID"));
     if ($arResult = $dbResult->Fetch()) {
         self::Delete($arResult["ID"]);
         unset(self::$lockCache[$path]);
     }
     return true;
 }
Example #2
0
 protected function CheckLock($path)
 {
     $arRequestPath = self::ParsePath($path);
     $path = CDavVirtualFileSystem::GetLockPath($arRequestPath["application"], $arRequestPath["id"]);
     return CDavVirtualFileSystem::CheckLock($path);
 }
Example #3
0
 protected function CheckLock($path)
 {
     /** @var Storage $storage */
     list($storage, $path) = $this->parsePath($path);
     if (!$storage) {
         return false;
     }
     $path = CDavVirtualFileSystem::GetLockPath("WS" . $storage->getId(), $path);
     return CDavVirtualFileSystem::CheckLock($path);
 }