• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/connector/datacounter.php
  • Класс: BitrixSenderConnectorDataCounter
  • Вызов: DataCounter::getArray
public function getArray()
{
	$counters = array();
	foreach ($this->data as $typeId => $count)
	{
		$counters[] = array(
			'typeId' => $typeId,
			'typeCode' => RecipientType::getCode($typeId),
			'typeName' => RecipientType::getName($typeId),
			'count' => $count
		);
	}

	$result = self::getDefaultArray();
	$result['summary'] = $this->getSummary();
	$result['counters'] = $counters;

	return $result;
}