[Mapbender-commits] r4057 - branches/2.6/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 19 10:55:12 EDT 2009
Author: christoph
Date: 2009-06-19 10:55:11 -0400 (Fri, 19 Jun 2009)
New Revision: 4057
Modified:
branches/2.6/http/php/mod_wfs_gazetteer_server.php
Log:
Modified: branches/2.6/http/php/mod_wfs_gazetteer_server.php
===================================================================
--- branches/2.6/http/php/mod_wfs_gazetteer_server.php 2009-06-19 14:54:09 UTC (rev 4056)
+++ branches/2.6/http/php/mod_wfs_gazetteer_server.php 2009-06-19 14:55:11 UTC (rev 4057)
@@ -100,6 +100,19 @@
$output = $json->encode($obj->confArray);
echo $output;
}
+elseif ($command == "getWfsConfsForThisApplication") {
+
+ $user = new User($_SESSION["mb_user_id"]);
+
+ // get all WFS conf IDs for this application
+ $availableWfsConfIds = $user->getWfsConfByPermission($_SESSION["gui_id"]);
+
+ $obj = new WfsConf();
+ $obj->load($availableWfsConfIds);
+ $json = new Mapbender_JSON();
+ $output = $json->encode($obj->confArray);
+ echo $output;
+}
else if ($command == "getSearchResults") {
$wfs_conf_id = $_REQUEST["wfs_conf_id"];
$backlink = $_REQUEST["backlink"];
@@ -136,4 +149,4 @@
else {
echo "please enter a valid command.";
}
-?>
\ No newline at end of file
+?>
More information about the Mapbender_commits
mailing list