• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/urlchecker.php
  • Класс: BitrixLandingUrlChecker
  • Вызов: UrlChecker::saveHost
protected function saveHost(int $statusId): void
{
	if (!$this->hostUrl)
	{
		return;
	}
	$res = UrlCheckerHostTable::getList([
		'select' => [
			'ID'
		],
		'filter' => [
			'STATUS_ID' => $statusId,
			'=HOST' => $this->hostUrl
		],
		'limit' => 1
	]);
	if (!$res->fetch())
	{
		UrlCheckerHostTable::add([
			'STATUS_ID' => $statusId,
			'HOST' => $this->hostUrl
		])->isSuccess();
	}
}