• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/manager.php
  • Класс: BitrixSaleExchangeManager
  • Вызов: Manager::getImportByType
static function getImportByType($typeId)
    {
        if(!is_int($typeId))
        {
            $typeId = (int)$typeId;
        }

        if(!EntityType::IsDefined($typeId))
        {
            throw new ArgumentOutOfRangeException('Is not defined', EntityType::FIRST, EntityType::LAST);
        }

        $import = static::getInstance();
        return isset($import[$typeId]) ? $import[$typeId] : null;
    }