[Mapbender-commits] r6227 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 31 08:56:37 EDT 2010


Author: verenadiewald
Date: 2010-05-31 08:56:35 -0400 (Mon, 31 May 2010)
New Revision: 6227

Modified:
   trunk/mapbender/http/classes/class_wfs.php
Log:
new function getWfsIdByFeaturetypeId

Modified: trunk/mapbender/http/classes/class_wfs.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs.php	2010-05-31 11:57:12 UTC (rev 6226)
+++ trunk/mapbender/http/classes/class_wfs.php	2010-05-31 12:56:35 UTC (rev 6227)
@@ -68,6 +68,16 @@
 		return null;
 	}
 	
+	public static function getWfsIdByFeaturetypeId ($id) {
+		$sql = "SELECT DISTINCT fkey_wfs_id FROM wfs_featuretype WHERE featuretype_id = $1";
+		$res = db_prep_query($sql, array($id), array("i"));
+		$row = db_fetch_assoc($res);
+		if ($row) {
+			return $row["fkey_wfs_id"];
+		}
+		return null;
+	}
+	
 	protected function getFeatureGet ($featureTypeName, $filter) {
 		$url = $this->getFeature .
 				$this->getConjunctionCharacter($this->getFeature) . 



More information about the Mapbender_commits mailing list