IMOpenLineTracker::prepareChannelInfos

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

	$sort = 1;
	$results = array();
	$items = $this->getItems();
	foreach($items as $item)
	{
		$groupID = "IMOPENLINE_{$item['ID']}";
		foreach($this->getConnectorInfos() as $connectorID => $connectorInfo)
		{
			$connectorName = $connectorInfo['NAME'];
			$results[] = new ImOpenLineChannelInfo(
				$connectorName,
				(int)$item['ID'],
				$connectorID,
				$sort,
				$groupID
			);
			$sort++;
		}
	}
	return $results;
}

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