VoxImplantTracker::prepareChannelInfos

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. VoxImplantTracker
  4. prepareChannelInfos
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/channel/voximplanttracker.php
  • Класс: Bitrix\Crm\Integration\Channel\VoxImplantTracker
  • Вызов: VoxImplantTracker::prepareChannelInfos
public function prepareChannelInfos()
{
	if(!$this->isEnabled())
	{
		return array();
	}

	$sort = 1;
	$results = array(
			new ChannelInfo(
				$this,
				ChannelType::VOXIMPLANT,
				Loc::getMessage("VOXIMPLANT_UNKNOWN_NUMBER"),
				'',
				'',
				$sort++,
				self::GROUP_ID
			)
	);
	$items = \CVoxImplantConfig::GetPortalNumbers(true, true);
	foreach($items as $number => $title)
	{
		$results[] = new ChannelInfo(
			$this,
			ChannelType::VOXIMPLANT,
			$title,
			$number,
			'',
			$sort++,
			self::GROUP_ID
		);
	}
	return $results;
}

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