• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/webdavstorage.php
  • Класс: CWebDavStorageCore
  • Вызов: CWebDavStorageCore::sendFile
public function sendFile($file)
{
	if(empty($file['extra']['id']))
	{
		throw new Exception('Wrong file id');
	}
	if(empty($file['extra']['iblockId']))
	{
		throw new Exception('Wrong file iblockId');
	}

	//todo session_commit() ?
	return $this
		->getWebDav()
		->fileViewByUser($file['extra']['id'], array('IBLOCK_ID' => $file['extra']['iblockId']))
	;
}