• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/bitrix24disk/legacy/storagecontroller.php
  • Класс: BitrixDiskBitrix24DiskLegacyStorageController
  • Вызов: StorageController::getStorageObject
protected function getStorageObject(array $extra = array(), $storageId = '')
{
	if(!empty($extra))
	{
		$extra = $this->storage->parseStorageExtra($extra);
		$this->storage->setStorageId(array(
			'IBLOCK_ID' => $extra['iblockId'],
			'IBLOCK_SECTION_ID' => $extra['sectionId'],
		));

		if($storageId && $storageId != $this->storage->getStringStorageId())
		{
			throw new ArgumentException('Wrong storage id!');
		}
		if(!$this->storage->getUserStorage())
		{
			throw new BadStorageAfterMigrateException;
		}
	}
	return $this->storage;
}