[Mapbender-commits] r8065 - branches/2.7/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 25 03:40:25 EDT 2011


Author: verenadiewald
Date: 2011-08-25 00:40:25 -0700 (Thu, 25 Aug 2011)
New Revision: 8065

Modified:
   branches/2.7/http/classes/class_wfs_configuration.php
Log:
removed stripslashes for $element->formElementHtml, because backslashes are needed here

Modified: branches/2.7/http/classes/class_wfs_configuration.php
===================================================================
--- branches/2.7/http/classes/class_wfs_configuration.php	2011-08-23 14:31:04 UTC (rev 8064)
+++ branches/2.7/http/classes/class_wfs_configuration.php	2011-08-25 07:40:25 UTC (rev 8065)
@@ -44,8 +44,8 @@
 	var $authVarname;
 	var $detailPos;
 	var $operator;
-	var $showDetail;
-	var $helptext;
+	var $showDetail;
+	var $helptext;
 	var $category;
 	
 	/**
@@ -179,6 +179,16 @@
 		$e = new mb_warning("This WFS conf doesn't have a geometry column.");
 		return null;
 	}
+
+        public function getGeometryColumnType () {
+		foreach ($this->elementArray as $element) {
+			if ($element->geom) {
+				return $element->type;
+			}
+		}
+		$e = new mb_warning("This WFS conf doesn't have a geometry column.");
+		return null;
+	}
 	
 	/**
 	 * Finds the featuretype element which stores the authentication data.
@@ -463,7 +473,7 @@
 			$element->respos = intval($row["f_respos"]);
 			$element->minInput = intval($row["f_min_input"]);
 //			$element->formElementHtmlTemplate = $row["f_html_template"];
-			$element->formElementHtml = stripslashes($row["f_form_element_html"]);
+			$element->formElementHtml = $row["f_form_element_html"];
 			$element->authVarname = stripslashes($row["f_auth_varname"]);
 			$element->detailPos = intval($row["f_detailpos"]);
 			$element->operator = $row["f_operator"];



More information about the Mapbender_commits mailing list