• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/channel/externaltracker.php
  • Класс: Bitrix\Crm\Integration\Channel\ExternalTracker
  • Вызов: ExternalTracker::prepareChannelGroupInfos
public function prepareChannelGroupInfos()
{
	$groupID = ChannelType::resolveName($this->typeID);
	$sort = self::getTypeSort($this->typeID);
	if($sort < 0)
	{
		$sort = 1000;
	}
	$caption = CCrmExternalChannelType::getDescription(
		CCrmExternalChannelType::resolveID(self::resolveExternalChannelTypeID($this->typeID))
	);

	return array(
		$groupID => new ChannelGroupInfo(
			$this,
			$groupID,
			$caption,
			(12000 + $sort),
			false
		)
	);
}