• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
  • Класс: CWebDavIblock
  • Вызов: CWebDavIblock::_get_lock
function _get_lock(&$options, array $element = array())
{
	$strProps = "";
	if($element)
	{
		$strProps = $element["PROPERTY_WEBDAV_INFO_VALUE"];
		$arProps = @unserialize($strProps, ['allowed_classes' => false]);
		$arProps = (!is_array($arProps) ? array() : $arProps);

		return $arProps;
	}

	$this->IsDir($options, true);
	if ($this->arParams["not_found"] === true)
	{
		return "404 Not Found";
	}
	elseif ($this->arParams["is_dir"] === true)
	{
		$strProps = $this->arParams["dir_array"]["DESCRIPTION"];
	}
	else
	{
		$strProps = $this->arParams["element_array"]["PROPERTY_WEBDAV_INFO_VALUE"];
	}
	$arProps = @unserialize($strProps, ['allowed_classes' => false]);
	$arProps = (!is_array($arProps) ? array() : $arProps);

	return $arProps;
}