• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/input.php
  • Класс: BitrixSaleInternalsInputManager
  • Вызов: Manager::register
static function register($name, array $type)
{
	if (isset(static::$types[$name]))
	{
		throw new SystemException('duplicate type '.$name, 0, __FILE__, __LINE__);
	}

	if (! class_exists($type['CLASS']))
	{
		throw new SystemException('undefined CLASS in '.print_r($type, true), 0, __FILE__, __LINE__);
	}

	if (! is_subclass_of($type['CLASS'], __NAMESPACE__.'Base'))
	{
		throw new SystemException($type['CLASS'].' does not implement InputBase', 0, __FILE__, __LINE__);
	}

	static::$types[$name] = $type;
}