[Mapbender-commits] r3307 - branches/2.5/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 15 04:00:15 EST 2008


Author: christoph
Date: 2008-12-15 04:00:15 -0500 (Mon, 15 Dec 2008)
New Revision: 3307

Modified:
   branches/2.5/http/classes/class_gui.php
Log:
get the WMS of a current application

Modified: branches/2.5/http/classes/class_gui.php
===================================================================
--- branches/2.5/http/classes/class_gui.php	2008-12-15 08:56:23 UTC (rev 3306)
+++ branches/2.5/http/classes/class_gui.php	2008-12-15 09:00:15 UTC (rev 3307)
@@ -45,6 +45,18 @@
 		return false;
  	}
 
+	public function getWms ($gui_id) {
+		$wmsArray = array();
+		
+		$sql = "SELECT fkey_wms_id from gui_wms WHERE gui_wms.fkey_gui_id = $1";
+		$v = array($gui_id);
+		$t = array("s");
+		$res = db_prep_query($sql, $v, $t);
+		while($row = db_fetch_array($res)){
+			array_push($wmsArray, $row['fkey_wms_id']);
+		}			
+		return $wmsArray;
+	}
 	
 	/**
 	 * Deletes a GUI $guiId and all its links to users, layers etc.



More information about the Mapbender_commits mailing list