• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/db/exporttreeukrain.php
  • Класс: BitrixSaleLocationImportCompilerDbis
  • Вызов: is::getMappedType
public function getMappedType($typeId)
{
	$dbConnection = MainHttpApplication::getConnection();

	if($this->types == false)
	{
		$res = $dbConnection->query('select ID, NAME, NAME_RU from b_tmp_ukrain_settlement_type');
		while($item = $res->fetch())
		{
			$this->types[$item['ID']] = array('NAME' => array(
				'ua' => array('NAME' => $item['NAME']),
				'ru' => array('NAME' => $item['NAME_RU'])
			));
		}
	}

	return $this->typeMap[$typeId];
}