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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 31 08:57:58 EDT 2010


Author: verenadiewald
Date: 2010-05-31 08:57:58 -0400 (Mon, 31 May 2010)
New Revision: 6228

Modified:
   trunk/mapbender/http/classes/class_user.php
Log:
new function getOwnedWfs

Modified: trunk/mapbender/http/classes/class_user.php
===================================================================
--- trunk/mapbender/http/classes/class_user.php	2010-05-31 12:56:35 UTC (rev 6227)
+++ trunk/mapbender/http/classes/class_user.php	2010-05-31 12:57:58 UTC (rev 6228)
@@ -523,6 +523,16 @@
 		return $arrayGuis;
 	}	
 	
+	public function getOwnedWfs () {
+		$sql = "SELECT wfs_id FROM wfs WHERE wfs_owner = $1";
+		$res = db_prep_query($sql, array($this->id), array("i"));
+		$wfsIdArray = array();
+		while ($row = db_fetch_array($res)) {
+			$wfsIdArray[]= $row["wfs_id"];
+		}
+		return $wfsIdArray;
+	}
+	
 	public function getWfsByPermission () {
 		$wfsArray = array();
 		$appArray = $this->getApplicationsByPermission();



More information about the Mapbender_commits mailing list