• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/rest.php
  • Класс: BitrixPullRest
  • Вызов: Rest::counterTypesGet
static function counterTypesGet($params, $n, CRestServer $server)
{
	$types = BitrixPullMobileCounter::getTypes();

	if (isset($params['USER_VALUES']) && $params['USER_VALUES'] === 'Y')
	{
		$config = BitrixPullMobileCounter::getConfig();
		foreach ($types as $type => $value)
		{
			$types[$type]['VALUE'] = $config[$type];
		}
	}

	$result = Array();
	foreach ($types as $type)
	{
		$result[] = array_change_key_case($type, CASE_LOWER);
	}

	return $result;
}