[Mapbender-commits] r4508 - branches/mifan_dev/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Aug 8 02:45:35 EDT 2009


Author: mifan
Date: 2009-08-08 02:45:35 -0400 (Sat, 08 Aug 2009)
New Revision: 4508

Modified:
   branches/mifan_dev/mapbender/http/php/mod_searchCatQueryBuilder_server.php
Log:


Modified: branches/mifan_dev/mapbender/http/php/mod_searchCatQueryBuilder_server.php
===================================================================
--- branches/mifan_dev/mapbender/http/php/mod_searchCatQueryBuilder_server.php	2009-08-08 06:44:59 UTC (rev 4507)
+++ branches/mifan_dev/mapbender/http/php/mod_searchCatQueryBuilder_server.php	2009-08-08 06:45:35 UTC (rev 4508)
@@ -23,13 +23,33 @@
 require_once(dirname(__FILE__)."/../classes/class_administration.php"); 
 require_once(dirname(__FILE__)."/../classes/class_json.php");
 
+/*
+ * get guis for user
+ * get catalogs for gui
+ * get get/post url for catalog
+ * construct query on url via get/xml
+ * make queries sequentially
+ * parse responses
+ * show responses with cat-name in results	
+ */
+
+function get_guis_for_user($user){
+	
+}
+
+function get_catalogs_for_gui($gui_array,$getrecords_type){
+	
+}
+
+
+
 $userId = $_SESSION["mb_user_id"];
 $command = $_GET["command"];
 $guiId = $_GET["guiId"];
 $simplesearch = $_REQUEST['search'];
 
-$getrecords_type = $_REQUEST[''];
-$getrecords_query = $_REQUEST[''];
+$getrecords_type = $_REQUEST['getrecordsmedia'];
+$getrecords_query = $_REQUEST['getrecordsquery'];
 
 $admin = new administration();
 $guiIdArray = $admin->getGuisByPermission($userId, false);
@@ -40,8 +60,20 @@
 array_push($resultObj['cats'],array("id"=>'id',"title"=>'test'));
 
 
-if ($command == "getrecordssimpleee") {
+if ($command == "getrecordssimple") {
 	$resultObj["cats"] = array();
+	
+	switch(mb_strtolower($getrecords_type)){
+		case 'get':
+			
+			break;
+		case 'post':
+			break;
+		case 'soap':
+			break;
+		default:
+	}
+	
 	$xml_req = build_getrecords_xml();
 	
 	$url = urlencode('http://gdi-de.sdisuite.de/soapServices/CSWStartup');
@@ -84,7 +116,12 @@
 	
 }
 
+function build_simple_query_get()
+{
+		
+}
 
+
 function getrecords_post ($url, $postData) {
 	 	$connection = new connector();
         $connection->set("httpType", "post");



More information about the Mapbender_commits mailing list