• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompileris
  • Вызов: is::generateExportTreeRussiaInner
private function generateExportTreeRussiaInner()
{
	$links = $this->getFias2YamarketRootLinks(false, true);

	//$this->output($links);

	$i = -1;
	foreach($links as $yRId => $regions)
	{
		$i++;

		$this->restoreTDGlobalExpIndex();
		$this->alreadyDumped = array();
		$this->restoreTDRusExpIndex();

		$this->fias2yandexMap = array();
		$fias2yandex = $this->getDataFromCSV('fias_yamarket_links', 'region_'.$yRId);
		foreach($fias2yandex as $map)
		{
			$this->fias2yandexMap[$map['AOGUID']] = $map;
		}
		unset($fias2yandex);

		$this->currentRegion = $this->mapETCodeBySource($yRId, self::SOURCE_YANDEX);

		foreach($regions as $regionId)
		{
			$this->fiasPath = array();

			$this->output('CCCurrent REGION is '.$this->currentRegion);
			//$this->output($this->alreadyDumped);

			$this->generateExportTreeRussiaInnerBundle($regionId);
		}

		$this->storeTDGlobalExpIndex();

		//break; // tmp
		//if($i == 1)break;
	}
}