CounterQueryBuilderFactory::make

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CounterQueryBuilderFactory
  4. make
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/counterquerybuilderfactory.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\CounterQueryBuilderFactory
  • Вызов: CounterQueryBuilderFactory::make
public function make(
	int $counterTypeId,
	FactoryConfig $config
): CounterQueryBuilder
{
	switch ($counterTypeId)
	{
		case EntityCounterType::CURRENT:
			return $this->makeCurrent($config);

		case EntityCounterType::READY_TODO:
			return $this->makeReadyTodo($config);

		case EntityCounterType::IDLE:
			return $this->makeIdle($config);

		case EntityCounterType::PENDING:
			return $this->makePending($config);

		case EntityCounterType::OVERDUE:
			return $this->makeOverdue($config);

		case EntityCounterType::INCOMING_CHANNEL:
			return $this->makeIncomingChannel($config);


		default:
			$typeName = EntityCounterType::resolveName($counterTypeId);
			throw new Main\NotSupportedException("The '$typeName' is not supported in current context");
	}
}

Добавить комментарий