• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompilerCompiler
  • Вызов: Compiler::buildMainTreeNext
private function buildMainTreeNext()
{
	$next = $this->queueShift();
	$bundle = $this->getBundleFromFile($next);

	if(!empty($bundle))
	{
		foreach($bundle as $item)
		{
			$this->data['TREES']['MAIN']['NODES'][$item['ID']] = $item;
			$parent = isset($item['PARENT_ID']) ? $item['PARENT_ID'] : 'ROOT';
			$this->data['TREES']['MAIN']['EDGES'][$parent][] = $item['ID'];

			if($item['CHILDREN_COUNT'] > 0)
				$this->queue[] = $item['ID'];
		}
	}

	return empty($this->queue);
}