3namespace Bitrix\Sale\Exchange;
6use Bitrix\Main\ArgumentOutOfRangeException;
7use Bitrix\Main\NotImplementedException;
8use Bitrix\Sale\Exchange\Internals\ExchangeLogTable;
9use Bitrix\Sale\Exchange\Internals\LoggerDiag;
10use Bitrix\Sale\Exchange\Logger\Exchange;
11use Bitrix\Sale\Exchange\ProviderType\ProviderType;
36 private static function getInstance()
38 if(self::$instance ===
null)
40 self::$instance =
new static();
42 return self::$instance;
53 static::IsDefinedTypeId($typeId);
55 $import = static::getInstance();
56 return isset($import[$typeId]) ? $import[$typeId] :
null;
75 ->deleteOldRecords(static::getDirectionType(), LoggerDiag::getInterval());
82 $typeId = (int)$typeId;
85 if(!EntityType::IsDefined($typeId))
const EXCHANGE_DIRECTION_EXPORT
static IsDefinedTypeId($typeId)
static configure(ImportBase $entity)
static getDirectionType()
static deleteLoggingDate()
const EXCHANGE_DIRECTION_IMPORT
static getImportByType($typeId)