move country list to SearchContext

This commit is contained in:
Sarah Hoffmann
2017-10-08 23:33:54 +02:00
parent 907133a38c
commit 55629a4891
3 changed files with 25 additions and 33 deletions

View File

@@ -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.
*