• Модуль: salescenter
  • Путь к файлу: ~/bitrix/modules/salescenter/lib/integration/landingmanager.php
  • Класс: BitrixSalesCenterIntegrationLandingManager
  • Вызов: LandingManager::updateFirstWebFormPage
protected function updateFirstWebFormPage($formId)
{
	$result = new Result();
	$component = $this->getLandingDemoComponent();
	if(!$component)
	{
		return $result->addError(new Error('Landing demo component is not found'));
	}
	$webFormPageCode = $this->getWebFormPageCode($component);
	if(!$webFormPageCode)
	{
		return $result->addError(new Error('Landing template for web form is not found'));
	}

	$firstWebFormPage = $this->getLastCreatedWebFormLanding($webFormPageCode);
	if($firstWebFormPage)
	{
		$result = $this->setLandingPageConnection($firstWebFormPage['ID'], $formId);
	}

	return $result;
}