• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/usertypewebdav.php
  • Класс: CUserTypeWebdavElement
  • Вызов: CUserTypeWebdavElement::_fileUnserialize
function _fileUnserialize($data)
{
	$arFile = array();

	$arIndex = explode('|', $data);
	if (sizeof($arIndex) < 1)
		return false;

	$arFile['id'] = intval($arIndex[0]);
	if (sizeof($arIndex) > 1)
		$arFile['dest_section'] = intval($arIndex[1]);
	if (sizeof($arIndex) > 2)
		$arFile['dest_iblock'] = intval($arIndex[2]);

	if ($arFile['id'] <= 0)
		return false;

	return $arFile;
}