• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/copy/integration/groupstepper.php
  • Класс: BitrixLandingCopyIntegrationGroupStepper
  • Вызов: GroupStepper::updateFolderIds
private function updateFolderIds(int $siteId, array $folderMapIds): void
{
	BitrixLandingLanding::disableCheckUniqueAddress();

	$res = LandingLanding::getList([
		'select' => [
			'ID', 'FOLDER_ID'
		],
		'filter' => [
			'SITE_ID' => $siteId,
			'FOLDER_ID' => array_keys($folderMapIds)
		]
	]);
	while ($row = $res->fetch())
	{
		if (isset($folderMapIds[$row['FOLDER_ID']]))
		{
			LandingLanding::update($row['ID'], [
				'FOLDER_ID' => $folderMapIds[$row['FOLDER_ID']]
			]);
		}
	}

	BitrixLandingLanding::enableCheckUniqueAddress();
}