• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::importSectionsAction
private function importSectionsAction(): void
{
	$this->xmlImport->freezeIblockCache();
	$result = $this->xmlImport->ImportSections();
	$this->xmlImport->unFreezeIblockCache();
	$this->xmlImport->clearIblockCacheOnHit();
	if ($result === true)
	{
		$this->nextStep();
		$this->setMessage(Loc::getMessage('IBLOCK_XML_IMPORT_MESS_IBLOCK_SECTIONS_IMPORT_COMPLETE'));
	}
	else
	{
		$this->addError(Loc::getMessage(
			'IBLOCK_XML_IMPORT_ERR_IBLOCK_SECTIONS_IMPORT_FAILURE',
			['#ERROR#' => $result]
		));
	}
}