[Mapbender-commits] r4322 -
branches/mifan_dev/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 9 01:59:43 EDT 2009
Author: mifan
Date: 2009-07-09 01:59:42 -0400 (Thu, 09 Jul 2009)
New Revision: 4322
Modified:
branches/mifan_dev/mapbender/http/classes/class_csw.php
Log:
put op values into object
Modified: branches/mifan_dev/mapbender/http/classes/class_csw.php
===================================================================
--- branches/mifan_dev/mapbender/http/classes/class_csw.php 2009-07-08 14:44:22 UTC (rev 4321)
+++ branches/mifan_dev/mapbender/http/classes/class_csw.php 2009-07-09 05:59:42 UTC (rev 4322)
@@ -201,22 +201,34 @@
}
//Handle operational elements
-
+
+
+ //Open operational element
if((mb_strtoupper($element[tag]) == "OWS:OPERATION" OR mb_strtoupper($element[tag]) == "OPERATION") && $element[type] == "open"){
$op_type = $element[attributes][name];
}
//GETCAPABILITIES
if((mb_strtoupper($op_type)=='GETCAPABILITIES') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "GET")){
- $this->cat_op_values['getcapabilities']['get'] = $element[attributes]["xlink:href"];
+ $this->cat_op_getcapabilities = $element[attributes]["xlink:href"];
}
- if((mb_strtoupper($op_type)=='GETCAPABILITIES') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "POST")){
- $this->cat_op_values['getcapabilities']['post'] = $element[attributes]["xlink:href"];
+
+ //GETRECORDS
+ if((mb_strtoupper($op_type)=='GETRECORDS') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "GET")){
+ $this->cat_op_getrecords = $element[attributes]["xlink:href"];
}
- if((mb_strtoupper($op_type)=='GETCAPABILITIES') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "POST")){
- $this->cat_op_values['getcapabilities']['post'] = $element[attributes]["xlink:href"];
+
+ //GETRECORDS
+ if((mb_strtoupper($op_type)=='GETRECORDBYID') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "GET")){
+ $this->cat_op_getrecordbyid = $element[attributes]["xlink:href"];
}
+ //DESCRIBERECORD
+ if((mb_strtoupper($op_type)=='GETRECORDS') && (mb_strtoupper($element[tag]) == "OWS:GET" OR mb_strtoupper($element[tag]) == "GET")){
+ $this->cat_op_describerecord = $element[attributes]["xlink:href"];
+ }
+
+ //Close operational element
if((mb_strtoupper($element[tag]) == "OWS:OPERATION" OR mb_strtoupper($element[tag]) == "OPERATION") && $element[type] == "close"){
$op_type = null;
}
More information about the Mapbender_commits
mailing list