• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/diskstorage.php
  • Класс: CDiskStorage
  • Вызов: CDiskStorage::getFile
public function getFile($id, array $extra, $skipCheckId = true)
{
	if(!$skipCheckId && $this->generateId(array('ID' => $extra['id'], 'FILE' => true)) != $id)
	{
		return false;
	}
	$file = File::loadById($extra['id']);
	if(!$file)
	{
		$this->errorCollection->add(array(new Error("Could not " . __METHOD__ . "  by id {$extra['id']}", 11145)));
		return array();
	}
	$this->loadFormattedFolderTreeAndBreadcrumbs();
	return $this->formatFileToResponse($file);
}