]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ParameterParser.php
add structured search to command-line query tool
[nominatim.git] / lib / ParameterParser.php
index cb03c6cc7c25c77f3b73f3b2347628a328734f83..ae252d6795b9e6f63ff50704c163091fac8ac25a 100644 (file)
@@ -118,4 +118,15 @@ class ParameterParser
         $aLangPrefOrder['type'] = 'type';
         return $aLangPrefOrder;
     }
+
+    public function hasSetAny($aParams)
+    {
+        foreach ($aParams as $sParam) {
+            if ($this->getBool($sParam)) {
+                return true;
+            }
+        }
+
+        return false;
+    }
 }