• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockxmlimport.php
  • Класс: CIBlockXmlImport
  • Вызов: CIBlockXmlImport::processMissingElementsAction
private function processMissingElementsAction(): void
{
	$this->xmlImport->freezeIblockCache();
	$result = $this->xmlImport->DeactivateElement(
		$this->getParameter('MISSING_ELEMENT_ACTION'),
		$this->startTime,
		$this->getParameter('INTERVAL')
	);
	$result = $this->xmlImport->updateCounters($result);
	$this->xmlImport->unFreezeIblockCache();
	$this->xmlImport->clearIblockCacheOnHit();
	if ($result == 0)
	{
		$this->nextStep();
		$this->setMessage(Loc::getMessage('IBLOCK_XML_IMPORT_MESS_PROCESS_MISSING_IBLOCK_ELEMENTS_COMPLETE'));
	}
	else
	{
		$this->setMessage(Loc::getMessage(
			'IBLOCK_XML_IMPORT_MESS_IBLOCK_ELEMENTS_IMPORT_PROGRESS',
			[
				'#TOTAL#' => $this->stepParameters['DONE']['ALL'],
				'#DONE#' => $this->stepParameters['DONE']['NON']
			]
		));
		$this->setProgressCounter(
			$this->stepParameters['DONE']['ALL'],
			$this->stepParameters['DONE']['NON']
		);
	}
}