CounterQueryBuilderFactory::makePending

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CounterQueryBuilderFactory
  4. makePending
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/counterquerybuilderfactory.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\CounterQueryBuilderFactory
  • Вызов: CounterQueryBuilderFactory::makePending
private function makePending(FactoryConfig $config): CounterQueryBuilder
{
	if ($config->isCompatibleWay())
	{
		return new DeadlineBased\Compatible(new PendingCompatible());
	}
	elseif ($config->isUncompletedActivityWay())
	{
		return new DeadlineBased\UncompletedBased(new PendingUncompleted());
	}
	else
	{
		return new DeadlineBased\CountableBased(new PendingCountable());
	}
}

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