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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 25 04:38:37 EDT 2010


Author: verenadiewald
Date: 2010-06-25 08:38:37 +0000 (Fri, 25 Jun 2010)
New Revision: 6429

Modified:
   trunk/mapbender/http/classes/class_gml.php
   trunk/mapbender/http/classes/class_gml_feature_collection.php
Log:
new function getFeatureMemberCount

Modified: trunk/mapbender/http/classes/class_gml.php
===================================================================
--- trunk/mapbender/http/classes/class_gml.php	2010-06-25 07:50:43 UTC (rev 6428)
+++ trunk/mapbender/http/classes/class_gml.php	2010-06-25 08:38:37 UTC (rev 6429)
@@ -100,6 +100,13 @@
 		fclose($handle);
 		return true;
 	}
+	
+	public function getFeatureMemberCount () {
+		if ($this->featureCollection === null) {
+			return null;
+		}
+		return $this->featureCollection->getFeatureMemberCount();
+	}
 }
 
 ?>
\ No newline at end of file

Modified: trunk/mapbender/http/classes/class_gml_feature_collection.php
===================================================================
--- trunk/mapbender/http/classes/class_gml_feature_collection.php	2010-06-25 07:50:43 UTC (rev 6428)
+++ trunk/mapbender/http/classes/class_gml_feature_collection.php	2010-06-25 08:38:37 UTC (rev 6429)
@@ -73,5 +73,9 @@
 		}
 		return Mapbender_bbox::union($bBoxArray);
 	}
+	
+	public function getFeatureMemberCount () {
+		return count($this->featureArray);
+	}
 }
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list