6 * Operators describing special searches.
8 abstract class Operator
10 /// No operator selected.
12 /// Search for POI of the given type.
14 /// Search for POIs near the given place.
16 /// Search for POIS in the given place.
18 /// Search for POIS named as given.
20 /// Search for postcodes.
23 private static $aConstantNames = null;
26 public static function toString($iOperator)
28 if ($iOperator == Operator::NONE) {
32 if (Operator::$aConstantNames === null) {
33 $oReflector = new \ReflectionClass('Nominatim\Operator');
34 $aConstants = $oReflector->getConstants();
36 Operator::$aConstantNames = array();
37 foreach ($aConstants as $sName => $iValue) {
38 Operator::$aConstantNames[$iValue] = $sName;
42 return Operator::$aConstantNames[$iOperator];