• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::getStepResult
public function getStepResult(): array
{
	$result = [];
	if ($this->isSuccess())
	{
		$result['TYPE'] = self::RESULT_TYPE_SUCCESS;
		$result['MESSAGE'] = $this->getMessage();
		$result['IS_FINAL'] = 'Y';
		if (!$this->isFinal())
		{
			$result['IS_FINAL'] = 'N';
			$progress = $this->getProgressCounter();
			if (!empty($progress))
				$result['PROGRESS'] = $progress;
			unset($progress);
		}
	}
	else
	{
		$result['TYPE'] = self::RESULT_TYPE_ERROR;
		$result['ERROR'] = implode("n", $this->getErrors());
		$result['IS_FINAL'] = 'Y';
	}

	return $result;
}