Crm::markAsInitiated

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Crm
  4. markAsInitiated
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/settings/crm.php
  • Класс: Bitrix\Crm\Settings\Crm
  • Вызов: Crm::markAsInitiated
static function markAsInitiated(): void
{
	if (!self::wasInitiated())
	{
		$pullManager = \Bitrix\Crm\Integration\PullManager::getInstance();

		if ($pullManager->isEnabled())
		{
			$channelShared = $pullManager->getChannelShared();
			if (is_array($channelShared))
			{
				self::setInitiatedOption();
				$pullManager->sendCrmInitiatedEvent($channelShared);
			}
		}
		else
		{
			self::setInitiatedOption();
		}
	}
}

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