...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/channel/externaltracker.php
- Класс: Bitrix\Crm\Integration\Channel\ExternalTracker
- Вызов: ExternalTracker::prepareChannelInfos
public function prepareChannelInfos() { if(!$this->isEnabled()) { return array(); } $sort = 1; $results = array(); $types = $this->getTypes(); $groupID = ChannelType::resolveName($this->typeID); foreach($this->getConnectorInfos() as $connector) { foreach($types as $typeID => $typeName) { $results[] = new ChannelInfo( $this, $this->getTypeID(), "{$connector['NAME']} {$typeName}", $connector['ORIGINATOR_ID'], $typeID, $sort, $groupID ); $sort++; } } return $results; }