ChannelRepository::getAll

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ChannelRepository
  4. getAll
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/messagesender/channel/channelrepository.php
  • Класс: Bitrix\Crm\MessageSender\Channel\ChannelRepository
  • Вызов: ChannelRepository::getAll
public function getAll(): array
{
	if (is_array($this->channels))
	{
		return $this->channels;
	}

	$this->channels = [];

	$senders = SenderRepository::getAllImplementationsList();
	foreach ($senders as $sender)
	{
		foreach ($sender::getChannelsList($this->toListByType, $this->userId) as $channel)
		{
			$this->channels[] = $channel;
		}
	}

	return $this->channels;
}

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