PullManager::isPullChannelActiveByTag

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. PullManager
  4. isPullChannelActiveByTag
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/pullmanager.php
  • Класс: Bitrix\Crm\Integration\PullManager
  • Вызов: PullManager::isPullChannelActiveByTag
static function isPullChannelActiveByTag(string $tag): bool
{
	if (Loader::includeModule('pull'))
	{
		$query = \Bitrix\Pull\Model\WatchTable::query();
		$query
			->addSelect('ID')
			->where('TAG', $tag)
			->setLimit(1)
		;

		return !!$query->fetch();
	}

	return false;
}

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