• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/transfer/import/site.php
  • Класс: BitrixLandingTransferImportSite
  • Вызов: Site::linkingPendingBlocks
static function linkingPendingBlocks(array $pendingIds, array $replace): void
{
	$replaceEncoded = base64_encode(serialize($replace));
	$res = BlockTable::getList([
		'select' => [
			'ID'
		],
		'filter' => [
			'ID' => $pendingIds
		]
	]);
	while ($row = $res->fetch())
	{
		$blockInstance = new Block($row['ID']);
		if ($blockInstance->exist())
		{
			$blockInstance->updateNodes([
				AppConfiguration::SYSTEM_COMPONENT_REST_PENDING => [
					'REPLACE' => $replaceEncoded
				]
			]);
			$blockInstance->save();
		}
	}
}