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

	$res = $this->fiasDB->getActualChildren($parentGuid);
	while($item = $res->fetch())
	{
		$item['PARENTGUID'] = $parentGuid;
		array_push($this->fiasPath, $item);

		if($this->checkIsAllowedCityVillage($item)) // check if this is a village or city or what else we should add to export
		{
			//$this->output('Allowed cityvillage '.$item['FORMALNAME']);

			$this->generateExportTreePutRussiaFiasPath($item); // ALSO store intermediate locations from current region-to-city(village, etc) being stored
			$this->generateExportTreePutRussiaStreets($item['AOGUID']); // store all streets of current villagecity...
		}

		$this->generateExportTreePutRussiaInnerBundle($item['AOGUID']);

		array_pop($this->fiasPath);
	}
	
}