• Модуль: documentgenerator
  • Путь к файлу: ~/bitrix/modules/documentgenerator/lib/storage/file.php
  • Класс: BitrixDocumentGeneratorStorageFile
  • Вызов: File::read
public function read($path)
{
	$uri = new Uri($path);
	if($uri->getHost() <> '')
	{
		$path = $this->readFromCloud($path);
		if(!$path)
		{
			return false;
		}
	}
	$file = new IOFile($path);
	if($file->isExists() && $file->isReadable())
	{
		return $file->getContents();
	}
	else
	{
		$path = Path::convertPhysicalToLogical($path);
		$file = new IOFile($path);
		if($file->isExists() && $file->isReadable())
		{
			return $file->getContents();
		}
	}

	return false;
}