[Mapbender-commits] r4065 - branches/mifan_dev/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Jun 20 03:06:17 EDT 2009


Author: mifan
Date: 2009-06-20 03:06:16 -0400 (Sat, 20 Jun 2009)
New Revision: 4065

Modified:
   branches/mifan_dev/mapbender/http/classes/class_csw.php
Log:
more methods to class

Modified: branches/mifan_dev/mapbender/http/classes/class_csw.php
===================================================================
--- branches/mifan_dev/mapbender/http/classes/class_csw.php	2009-06-19 21:19:01 UTC (rev 4064)
+++ branches/mifan_dev/mapbender/http/classes/class_csw.php	2009-06-20 07:06:16 UTC (rev 4065)
@@ -28,9 +28,17 @@
  *
  */
 class csw{
-	var $title;
-	var $abstract;
+	var $cat_id;
+	var $cat_title;
+	var $cat_abstract;
+	var $cat_version;
 	
+	var $cat_op_getcapabilities;
+	var $cat_op_getrecords;
+	var $cat_op_getrecordbyid;
+	var $cat_op_describerecord;
+	var $cat_getcapabilities_doc;
+	
 	var $fees;
 	var $accessconstraints;
 	var $contactperson;
@@ -45,6 +53,8 @@
 	var $contactfacsimiletelephone;
 	var $contactelectronicmailaddress;
 	
+	var $keywords = array();
+	
 	var $catowner;
 	var $cattimestamp;
 	
@@ -52,17 +62,42 @@
 		
 	}
 	
-	public function createCatObjFromXML()
+	//Getters of common items
+	function getCatVersion(){
+		return $this->cat_version;	
+	}
+	
+	
+	//XML to Persistance
+	/**
+	 * Called by admin function when adding catalog
+	 * Create Catalog object from Getcapabilities XML
+	 * @return unknown_type
+	 * @param $url URL of getcapabilities request
+	 */
+	public function createCatObjFromXML($url)
 	{
-		
+		//import connector
+		$x = new connector($url);
+		$data = $x->file;
 	}
 	
-	public function createCatObjFromDB()
+	/**
+	 * Get catalog object from DB
+	 * @param $cat_id
+	 * @return unknown_type
+	 */
+	public function getCatObjFromDB($cat_id)
 	{
 		
 	}
 	
-	public function setCatObjToDB()
+	/**
+	 * Write catalog object to persistent storage
+	 * @param $gui
+	 * @return unknown_type
+	 */
+	public function setCatObjToDB($gui)
 	{
 		
 	}



More information about the Mapbender_commits mailing list