mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
move country list to SearchContext
This commit is contained in:
@@ -22,6 +22,7 @@ class SearchContext
|
||||
public $sqlViewboxSmall = '';
|
||||
public $sqlViewboxLarge = '';
|
||||
public $sqlViewboxCentre = '';
|
||||
public $sqlCountryList = '';
|
||||
private $sqlExcludeList = '';
|
||||
|
||||
public function hasNearPoint()
|
||||
@@ -97,6 +98,11 @@ class SearchContext
|
||||
$this->sqlExcludeList = ' not in ('.join(',', $aExcluded).')';
|
||||
}
|
||||
|
||||
public function setCountryList($aCountries)
|
||||
{
|
||||
$this->sqlCountryList = '('.join(',', array_map('addQuotes', $aCountries)).')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract a coordinate point from a query string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user