• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/mobilecounter.php
  • Класс: BitrixPullMobileCounter
  • Вызов: MobileCounter::getTypes
static function getTypes()
{
	$types = Array();

	$event = new BitrixMainEvent("pull", "onGetMobileCounterTypes");
	$event->send();

	foreach ($event->getResults() as $eventResult)
	{
		if ($eventResult->getType() != BitrixMainEventResult::SUCCESS)
		{
			continue;
		}

		$result = $eventResult->getParameters();
		if (!is_array($types))
		{
			continue;
		}

		foreach ($result as $type => $config)
		{
			$config['TYPE'] = $eventResult->getModuleId().'_'.$type;
			$types[$eventResult->getModuleId().'_'.$type] = $config;
		}
	}

	return $types;
}