• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
  • Класс: CIBlockCMLImport
  • Вызов: CIBlockCMLImport::GetTotalCountElementsForImport
public function GetTotalCountElementsForImport()
{
	$result = true;
	if (isset($this->next_step["XML_ELEMENTS_PARENT"]) && $this->next_step["XML_ELEMENTS_PARENT"] > 0)
	{
		if (!isset($this->next_step["DONE"]))
			$this->next_step["DONE"] = [];
		if (!isset($this->next_step["DONE"]["ALL"]))
			$this->next_step["DONE"]["ALL"] = 0;
		if ($this->next_step["DONE"]["ALL"] <= 0)
		{
			if ($this->_xml_file->IsExistTemporaryTable())
			{
				$this->next_step["DONE"]["ALL"] = $this->_xml_file->GetCountItemsWithParent($this->next_step["XML_ELEMENTS_PARENT"]);
			}
			else
			{
				$this->LAST_ERROR = GetMessage("IBLOCK_XML2_TEMPORARY_TABLE_EXIST_ERROR");
				$result = false;
			}
		}
	}
	return $result;
}