• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::importMetadataAction
private function importMetadataAction(): void
{
	$result = $this->xmlImport->ImportMetaData(
		$this->xmlImport->GetRoot(),
		$this->getParameter('IBLOCK_TYPE'),
		$this->getParameter('SITE_LIST')
	);
	if ($result === true)
	{
		$this->nextStep();
		$this->setMessage(Loc::getMessage('IBLOCK_XML_IMPORT_MESS_METADATA_IMPORT_COMPLETE'));
	}
	else
	{
		if (is_array($result))
		{
			$result = "n" . implode("n", $result);
		}
		$this->addError(Loc::getMessage(
			'IBLOCK_XML_IMPORT_ERR_METADATA_IMPORT_FAILURE',
			['#ERROR#' => $result]
		));
	}
	unset($result);
}