• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/controller/config.php
  • Класс: BitrixPullControllerConfig
  • Вызов: Config::getWithChannelId
public function getWithChannelId(string $channelId, string $channelPublicId = '')
{
	$config = BitrixPullConfig::get([
		'CHANNEL_ID' => $channelId,
		'CHANNEL_PUBLIC_ID' => $channelPublicId,
		'JSON' => true
	]);

	if (!$config)
	{
		$this->errorCollection[] = new Error("Push & Pull server is not configured", "SERVER_ERROR");
		return null;
	}

	return $config;
}