make all Token menbers private

This commit is contained in:
Sarah Hoffmann
2021-07-18 20:20:22 +02:00
parent 86ea077092
commit cca912af4e
2 changed files with 10 additions and 10 deletions

View File

@@ -555,15 +555,15 @@ class Geocode
if (!empty($aTokens)) {
$aNewSearches = array();
$oPosition = new SearchPosition('', 0, 1);
$oPosition->setTokenPosition(0, 1);
foreach ($aSearches as $oSearch) {
foreach ($aTokens as $oToken) {
$oNewSearch = clone $oSearch;
$oNewSearch->setPoiSearch(
$oToken->iOperator,
$oToken->sClass,
$oToken->sType
$aNewSearches = array_merge(
$aNewSearches,
$oToken->extendSearch($oSearch, $oPosition)
);
$aNewSearches[] = $oNewSearch;
}
}
$aSearches = $aNewSearches;

View File

@@ -10,13 +10,13 @@ require_once(CONST_LibDir.'/SpecialSearchOperator.php');
class SpecialTerm
{
/// Database word id, if applicable.
public $iId;
private $iId;
/// Class (or OSM tag key) of the place to look for.
public $sClass;
private $sClass;
/// Type (or OSM tag value) of the place to look for.
public $sType;
private $sType;
/// Relationship of the operator to the object (see Operator class).
public $iOperator;
private $iOperator;
public function __construct($iID, $sClass, $sType, $iOperator)
{