• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/site/update/domainua.php
  • Класс: BitrixLandingSiteUpdateDomainUa
  • Вызов: DomainUa::unPublicationPages
static function unPublicationPages(int $siteId): bool
{
	$res = LandingTable::getList([
		'select' => ['ID'],
		'filter' => [
			'SITE_ID' => $siteId,
			'ACTIVE' => 'Y',
		],
	]);
	while ($landing = $res->fetch())
	{
		$resUpdate = LandingTable::update($landing['ID'], [
			'ACTIVE' => 'N',
			'PUBLIC' => 'N',
		]);

		if (!$resUpdate->isSuccess())
		{
			return false;
		}
	}

	return true;
}