]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/TokenSpecialTerm.php
Merge pull request #1347 from mtmail/pdo-returns-proper-boolean
[nominatim.git] / lib / TokenSpecialTerm.php
index d2a21721aacb95a7c113d577900a36af71e803dc..64e4b3d4786b591640be21c84dccdb25ece8e70a 100644 (file)
@@ -9,9 +9,13 @@ require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
  */
 class SpecialTerm
 {
+    /// Database word id, if applicable.
     public $iId;
+    /// Class (or OSM tag key) of the place to look for.
     public $sClass;
+    /// Type (or OSM tag value) of the place to look for.
     public $sType;
+    /// Relationship of the operator to the object (see Operator class).
     public $iOperator;
 
     public function __construct($iID, $sClass, $sType, $iOperator)
@@ -30,7 +34,7 @@ class SpecialTerm
                 'Info' => array(
                            'class' => $this->sClass,
                            'type' => $this->sType,
-                           'operator' => Operator::toString($this->iOperator)
+                           'operator' => \Nominatim\Operator::toString($this->iOperator)
                           )
                );
     }