EntityCounterFactory::createNamed

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityCounterFactory
  4. createNamed
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycounterfactory.php
  • Класс: Bitrix\Crm\Counter\EntityCounterFactory
  • Вызов: EntityCounterFactory::createNamed
public function createNamed($code, $userID = 0)
{
	if($code === self::TOTAL_COUNTER) {
		return self::createTotalCounter($code, $userID);
	}

	if($code === self::NO_ORDERS_COUNTER) {
		return self::createNoOrdersCounter($code, $userID);
	}

	if (CustomSectionProvider::isCustomSectionCounter($code))
	{
		return self::createCustomSectionCounter($code, $userID);
	}

	if (CustomSectionProvider::isCustomSectionPageCounter($code))
	{
		return self::createCustomPageCounter($code, $userID);
	}

	return null;
}

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