• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompilerCompiler
  • Вызов: Compiler::generateExportTreePutRussiaInner
private function generateExportTreePutRussiaInner()
{
	// get yandex-to-fias region code map
	$links = $this->getFias2YamarketRootLinks(false, true);

	$i = -1;
	// for each region we must dump its content
	// $yRId is a yandex id for the target region
	// $fiasRegions is one (mostly) or several corresponding "regions" from fias
	foreach($links as $yRId => $fiasRegions)
	{
		$i++;

		// get yandex-to-fias city code map for the current region
		$this->fias2yandexCityMap = $this->getYandexToFiasCityMap($yRId);
		$this->currentRegion = $this->mapETCodeAsYandex($yRId);

		$this->eTreeDBRussia->dropCodeIndex(); // drop previous region index

		foreach($fiasRegions as $regionGuid)
		{
			$this->fiasPath = array();
			$this->generateExportTreePutRussiaInnerBundle($regionGuid);
		}

		//break;
	}
}