• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::run
public function run(): void
{
	$this->setXmlImporterParameters();
	$this->setMessage('');
	$this->clearProgressCounter();
	switch ($this->getCurrentStep())
	{
		case self::STEP_INIT_IMPORT_TABLES:
			$this->initTemporaryTablesAction();
			break;
		case self::STEP_READ_XML:
			$this->readXmlAction();
			break;
		case self::STEP_INDEX_IMPORT_TABLES:
			$this->indexTemporaryTablesAction();
			break;
		case self::STEP_IMPORT_METADATA:
			$this->importMetadataAction();
			break;
		case self::STEP_IMPORT_SECTIONS:
			$this->importSectionsAction();
			break;
		case self::STEP_MISSING_SECTIONS:
			$this->processMissingSectionsAction();
			break;
		case self::STEP_RESORT_SECTIONS:
			$this->resortSectionsAction();
			break;
		case self::STEP_IMPORT_ELEMENTS:
			$this->importElementsAction();
			break;
		case self::STEP_MISSING_ELEMENTS:
			$this->processMissingElementsAction();
			break;
		case self::STEP_IMPORT_PRODUCT_BUNDLES:
			$this->importProductBundlesAction();
			break;
		case self::STEP_FINAL:
			$this->finalAction();
			break;
	}
}