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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 21 02:46:46 EDT 2007


Author: uli
Date: 2007-08-21 02:46:45 -0400 (Tue, 21 Aug 2007)
New Revision: 1662

Modified:
   trunk/mapbender/http/classes/class_administration.php
Log:
new function getWfsByOwner()

Modified: trunk/mapbender/http/classes/class_administration.php
===================================================================
--- trunk/mapbender/http/classes/class_administration.php	2007-08-15 14:39:15 UTC (rev 1661)
+++ trunk/mapbender/http/classes/class_administration.php	2007-08-21 06:46:45 UTC (rev 1662)
@@ -970,5 +970,23 @@
 		$e = new mb_notice("no conversion: is " . CHARSET);
 		return $data;
 	}
+	
+	/*
+	 * identifies the Featureservices where the current user is owner
+	 * 
+	 * @param integer userid the user-ID of the current user
+	 * @returen integer[] the IDs of the featureservices
+	 */
+	function getWfsByOwner($userid){
+		$sql = "SELECT wfs_id FROM wfs WHERE wfs_owner = $1";
+		$v = array($userid);
+		$t = array('i');
+		$res = db_prep_query($sql,$v,$t);
+		$r = array();
+		while($row = db_fetch_array($res)){
+			array_push($r,$row["wfs_id"]);
+		}
+		return $r;
+	}
 }
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list