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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 15 03:56:23 EST 2008


Author: christoph
Date: 2008-12-15 03:56:23 -0500 (Mon, 15 Dec 2008)
New Revision: 3306

Modified:
   branches/2.5/http/classes/class_administration.php
Log:
added function get root layer by WMS

Modified: branches/2.5/http/classes/class_administration.php
===================================================================
--- branches/2.5/http/classes/class_administration.php	2008-12-15 07:11:39 UTC (rev 3305)
+++ branches/2.5/http/classes/class_administration.php	2008-12-15 08:56:23 UTC (rev 3306)
@@ -662,6 +662,16 @@
 		return $ownguis;
 	}
 	
+	function getRootLayerByWms($wms_id){
+		$sql = "SELECT layer_id from layer WHERE fkey_wms_id = $1 AND layer_pos = '0' LIMIT 1";
+		$v = array($wms_id);
+		$t = array('i');
+		$res = db_prep_query($sql,$v,$t);
+		$layer_id_array = array();
+		$row = db_fetch_array($res);
+		return $row['layer_id'];
+	}	
+
 	function getLayerByWms($wms_id){
 		$sql = "SELECT layer_id from layer WHERE fkey_wms_id = $1 AND layer_pos NOT IN ('0') GROUP BY layer_id, layer_title ORDER BY layer_title";
 		$v = array($wms_id);



More information about the Mapbender_commits mailing list