• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/site.php
  • Класс: BitrixLandingSite
  • Вызов: Site::ping
static function ping(int $id, bool $deleted = false): bool
{
	if (array_key_exists($id, self::$pings))
	{
		return self::$pings[$id];
	}

	$filter = [
		'ID' => $id
	];
	if ($deleted)
	{
		$filter['=DELETED'] = ['Y', 'N'];
	}

	$check = Site::getList([
		'select' => [
			'ID'
		],
		'filter' => $filter
	]);
	self::$pings[$id] = (boolean) $check->fetch();

	return self::$pings[$id];
}