[Mapbender-commits] r1816 - branches/mapbender_sld/http/sld/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 15 11:11:08 EST 2007
Author: mschulz
Date: 2007-11-15 11:11:08 -0500 (Thu, 15 Nov 2007)
New Revision: 1816
Added:
branches/mapbender_sld/http/sld/classes/ParameterValue.php
Log:
Initial checkin, new ParameterValueType
Added: branches/mapbender_sld/http/sld/classes/ParameterValue.php
===================================================================
--- branches/mapbender_sld/http/sld/classes/ParameterValue.php (rev 0)
+++ branches/mapbender_sld/http/sld/classes/ParameterValue.php 2007-11-15 16:11:08 UTC (rev 1816)
@@ -0,0 +1,57 @@
+<?php
+/**
+ * Implementation of the ParameterValueType type of elements
+ *
+ * @package sld_classes
+ * @author Michael Schulz
+ */
+class ParameterValue
+{
+ /**
+ * The value attribute from the xml-scheme.
+ * @var string
+ */
+ var $value = "";
+
+ /**
+ * Index identifying the object in the $_SESSION("sld_objects") array.
+ * @var int
+ */
+ var $id = "";
+
+ /**
+ * Index identifying the object's parent object in the $_SESSION("sld_objects") array.
+ * @var int
+ */
+ var $parent = "";
+
+ /**
+ * creates the xml for this object and its child objects
+ *
+ * @param string $offset string used for formatting the output
+ * @return string containing the xml-fragment
+ */
+ function generateXml()
+ {
+ $temp = "<PropertyName>".$this->value."</PropertyName>";
+ return $temp;
+ }
+
+ /**
+ * creates the html-form-fragment for this object
+ *
+ * @param $id string containing a prefix that should be used to identify this
+ * object's html fields. This must be done, so that the generateObjectFromPost(...)
+ * function can address the fields belonging to this object in the http-post.
+ *
+ * @param string $offset string used for formatting the output
+ * @return string containing the html-form-fragment
+ */
+ function generateHtmlForm($id, $offset = "")
+ {
+ $temp = $this->value;
+ return $temp;
+ }
+
+}
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list