• Модуль: transformer
  • Путь к файлу: ~/bitrix/modules/transformer/lib/file.php
  • Класс: BitrixTransformerFile
  • Вызов: File::__construct
public function __construct($file)
{
	if(empty($file))
	{
		return;
	}

	if(is_int($file))
	{
		$this->createByCFileId($file);
	}

	if(!$this->absolutePath)
	{
		$this->createByPath($file);
	}

	if(!$this->absolutePath)
	{
		$rootPath = $_SERVER['DOCUMENT_ROOT'];
		$this->createByPath($rootPath.$file);
	}

	if(!$this->absolutePath)
	{
		//relative in upload path
		$absolutePath = FileUploader::getFullPath($file);
		$this->createByPath($absolutePath);
	}

	if(!$this->absolutePath)
	{
		$this->findInCloud($file);
	}
}