• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/model/channel.php
  • Класс: BitrixPullModelChannel
  • Вызов: Channel::createWithTag
static function createWithTag(string $tag): Channel
{
	$instance = new static();
	$instance->privateId = CPullChannel::GetNewChannelIdByTag($tag);
	$instance->publicId = CPullChannel::GetNewChannelIdByTag($tag,'public');
	$instance->dateCreate = new DateTime();

	return $instance;
}