• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompilerCompiler
  • Вызов: Compiler::generateExportTreeRussiaInnerBundle
private function generateExportTreeRussiaInnerBundle($parentGuid)
{
	if(!strlen($parentGuid))
		return;

	$res = $this->getDataFromCSV('fias_tree', $parentGuid);
	foreach($res as $item)
	{
		if($item['LIVESTATUS'] != '1' || $item['ACTSTATUS'] != '1')
			continue;

		$item['PARENT_ID'] = $parentGuid;
		array_push($this->fiasPath, $item);

		if($this->checkIsAllowedCityVillage($item['ID'], $item['TYPE']))
		{
			// ADD!!!
			$this->storeCurrentFiasPath2();
			$this->generateExportTreeRussiaInnerStreets($item['ID']);
		}

		$this->generateExportTreeRussiaInnerBundle($item['ID']);

		array_pop($this->fiasPath);
	}
	
}