]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/TokenSpecialTerm.php
rename nominatim.admin to nominatim.tools
[nominatim.git] / lib / TokenSpecialTerm.php
index d2a21721aacb95a7c113d577900a36af71e803dc..b2c312ec90e53d8a52b022aeb01ab057059fbd3f 100644 (file)
@@ -2,16 +2,20 @@
 
 namespace Nominatim\Token;
 
-require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
+require_once(CONST_LibDir.'/SpecialSearchOperator.php');
 
 /**
  * A word token describing a place type.
  */
 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)
                           )
                );
     }