• Модуль: documentgenerator
  • Путь к файлу: ~/bitrix/modules/documentgenerator/lib/storage/bfile.php
  • Класс: BitrixDocumentGeneratorStorageBFile
  • Вызов: BFile::read
public function read($fileId)
{
	if(intval($fileId) > 0)
	{
		$fileArray = CFile::MakeFileArray($fileId);
		if($fileArray && $fileArray['tmp_name'])
		{
			return parent::read($fileArray['tmp_name']);
		}
		$path = CFile::getPath($fileId);
		if($path)
		{
			return parent::read($path);
		}
	}

	return false;
}