EntityCounterFactory::createCustomPageCounter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityCounterFactory
  4. createCustomPageCounter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycounterfactory.php
  • Класс: Bitrix\Crm\Counter\EntityCounterFactory
  • Вызов: EntityCounterFactory::createCustomPageCounter
static function createCustomPageCounter(string $code, int $userID): AggregateCounter
{
	return new AggregateCounter($code, [
		[
			'entityTypeID' => CustomSectionProvider::getEntityTypeIdByCounterId($code),
			'counterTypeID' => EntityCounterType::ALL,
		],
	], $userID);
}

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