• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/site/update/chatsalesorder.php
  • Класс: BitrixLandingSiteUpdateChatSalesOrder
  • Вызов: ChatSalesOrder::update
static function update(int $siteId): bool
{
	$site = self::getId($siteId);

	if (!$site || !in_array($site['TPL_CODE'], self::ONLY_CODES, true))
	{
		return true;
	}

	$orderPageId = self::getExistsPageId($siteId, self::PAGE_CODE);
	if ($orderPageId)
	{
		$currentHooks = self::getLandingHooks($orderPageId);
		$newHooks = self::getNewLandingHooks();
		self::prepareLandingHooks($currentHooks, $newHooks, $orderPageId);

		$currentBlocks = self::getLandingBlocks($orderPageId);
		$newBlocksData = self::getNewLandingBlocksData();
		self::prepareLandingBlocks($currentBlocks, $newBlocksData);
	}

	return true;
}