- Модуль: webdav
- Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
- Класс: CWebDavIblock
- Вызов: CWebDavIblock::checkLock
function checkLock($path, array $element = array())
{
$result = false;
$options = array("path" => $path);
$arProps = $this->_get_lock($options, $element);
if (!is_array($arProps)) return $arProps; // error in _get_lock
if (array_key_exists("LOCK", $arProps) && is_array($arProps["LOCK"]) && count($arProps["LOCK"]) > 0)
{
$k = array_key_first($arProps["LOCK"]);
$row = $arProps["LOCK"][$k];
$result = array(
"type" => "write",
"scope" => $row["exclusivelock"] ? "exclusive" : "shared",
"depth" => 0,
"owner" => $row["owner"],
"token" => $k,
"created" => $row["created"],
"modified" => $row["modified"],
"expires" => $row["expires"]);
}
return $result;
}