- Модуль: webdav
- Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
- Класс: CWebDavIblock
- Вызов: CWebDavIblock::GetObjectPath
function GetObjectPath($arObject, $convert = false)
{
$result = null;
if ($arObject['is_dir'])
{
$result = $this->_get_path($arObject['item_id'], $convert);
}
elseif ($arObject['is_file'])
{
$result = str_replace(array("///","//"), "/", $this->_get_path($arObject['parent_id'], false) . "/" . $arObject['element_name']);
if ($convert)
$result = $this->_uencode($result, array("utf8" => "Y", "convert" => "full"));
}
return $result;
}