• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/disk/hiddenstorage.php
  • Класс: Bitrix\Crm\Integration\Disk\HiddenStorage
  • Вызов: HiddenStorage::__construct
public function __construct()
{
	if (!Loader::includeModule('disk'))
	{
		throw new NotSupportedException('"disk" module is required');
	}

	$this->storage = Driver::getInstance()->addStorageIfNotExist([
		'NAME' => static::NAME,
		'MODULE_ID' => static::MODULE,
		'ENTITY_TYPE' => ProxyType::class,
		'ENTITY_ID' => static::MODULE,
	]);

	if ($this->storage && $this->storage->isEnabledTransformation())
	{
		$this->storage->disableTransformation();
	}

	$this->userId = Container::getInstance()->getContext()->getUserId();
	$this->connection = Application::getConnection();
	$this->errorCollection = [];
}