• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/storage.php
  • Класс: BitrixDiskStorage
  • Вызов: Storage::initializeProxyType
protected function initializeProxyType()
{
	if(Driver::INTERNAL_MODULE_ID != $this->moduleId && !Loader::includeModule($this->moduleId))
	{
		throw new SystemException("Could not include module {$this->moduleId}");
	}

	/** @var ProxyTypeBase $entityTypeClassName */
	$entityTypeClassName = $this->entityType;
	/** @var ProxyTypeBase $proxyType */
	$proxyType = new $entityTypeClassName($this->entityId, $this, $this->entityMiscData);

	if(!$proxyType instanceof ProxyTypeBase)
	{
		throw new SystemException('Invalid class for ProxyType. Must be instance of ProxyTypeBase');
	}

	return $proxyType;
}