• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::readXmlAction
private function readXmlAction(): void
{
	$this->openXmlFile();
	if (!$this->isSuccess())
	{
		return;
	}
	if ($this->xmlImport->ReadXMLToDatabase(
		$this->fileHandler,
		$this->stepParameters,
		$this->getParameter('INTERVAL'),
		$this->getConfigFieldValue('READ_BLOCKSIZE')
	))
	{
		$this->setMessage(Loc::getMessage('IBLOCK_XML_IMPORT_MESS_XML_FILE_READ_COMPLETE'));
		$this->nextStep();
	}
	else
	{
		$this->setMessage(Loc::getMessage(
			'IBLOCK_XML_IMPORT_MESS_XML_FILE_READ_PROGRESS',
			['#PERCENT#' => $this->getXmlFileProgressPercent()]
		));
	}
	$this->closeXmlFile();
}