[Mapbender-commits] r4060 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 19 11:41:41 EDT 2009
Author: christoph
Date: 2009-06-19 11:41:40 -0400 (Fri, 19 Jun 2009)
New Revision: 4060
Modified:
trunk/mapbender/http/classes/class_wfs_configuration.php
Log:
Modified: trunk/mapbender/http/classes/class_wfs_configuration.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_configuration.php 2009-06-19 15:15:58 UTC (rev 4059)
+++ trunk/mapbender/http/classes/class_wfs_configuration.php 2009-06-19 15:41:40 UTC (rev 4060)
@@ -417,9 +417,9 @@
$wfsConf->buttonId = $row["g_button_id"];
$wfsConf->buffer = $row["g_buffer"];
$wfsConf->resStyle = $row["g_res_style"];
- $wfsConf->wfsId = $row["fkey_wfs_id"];
+ $wfsConf->wfsId = intval($row["fkey_wfs_id"]);
$wfsConf->type = intval($row["wfs_conf_type"]);
- $wfsConf->featureTypeId = $row["fkey_featuretype_id"];
+ $wfsConf->featureTypeId = intval($row["fkey_featuretype_id"]);
$sql = <<<SQL
SELECT * FROM wfs_conf_element JOIN wfs_element
@@ -435,7 +435,7 @@
while ($row = db_fetch_array($res)) {
$element = new WfsConfigurationElement();
- $element->id = $row["element_id"];
+ $element->id = intval($row["element_id"]);
$element->name = $row["element_name"];
$element->type = $row["element_type"];
$element->search = intval($row["f_search"]);
@@ -448,12 +448,12 @@
$element->geom = intval($row["f_geom"]);
$element->show = intval($row["f_show"]);
$element->mandatory = intval($row["f_mandatory"]);
- $element->respos = $row["f_respos"];
- $element->minInput = $row["f_min_input"];
+ $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->authVarname = stripslashes($row["f_auth_varname"]);
- $element->detailPos = $row["f_detailpos"];
+ $element->detailPos = intval($row["f_detailpos"]);
$element->operator = $row["f_operator"];
$element->showDetail = intval($row["f_show_detail"]);
$element->helptext = $row["f_helptext"];
@@ -461,7 +461,8 @@
$wfsConf->elementArray[]= $element;
}
-
+
+ $wfsConf->id = intval($id);
return $wfsConf;
}
}
More information about the Mapbender_commits
mailing list