• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/localdocumentcontroller.php
  • Класс: Bitrix\Disk\Document\LocalDocumentController
  • Вызов: LocalDocumentController::initializeFile
protected function initializeFile($fileId)
{
	$this->file = File::loadById($fileId, array('STORAGE'));
	if(!$this->file)
	{
		$this->errorCollection->add(array(new Error(Loc::getMessage('DISK_LOCAL_DOC_CONTROLLER_ERROR_COULD_NOT_FIND_FILE'), self::ERROR_COULD_NOT_FIND_FILE)));
		$this->sendJsonResponse(array('status' => self::STATUS_NOT_FOUND));
	}
}