summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/THiddenField.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/THiddenField.php')
-rw-r--r--framework/Web/UI/WebControls/THiddenField.php29
1 files changed, 28 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THiddenField.php b/framework/Web/UI/WebControls/THiddenField.php
index f9fdd3b0..8a8a0c8a 100644
--- a/framework/Web/UI/WebControls/THiddenField.php
+++ b/framework/Web/UI/WebControls/THiddenField.php
@@ -23,7 +23,7 @@
* @package System.Web.UI.WebControls
* @since 3.0
*/
-class THiddenField extends TControl implements IPostBackDataHandler, IValidatable
+class THiddenField extends TControl implements IPostBackDataHandler, IValidatable, IDataRenderer
{
/**
* @return string tag name of the hidden field.
@@ -132,6 +132,33 @@ class THiddenField extends TControl implements IPostBackDataHandler, IValidatabl
}
/**
+ * Returns the value of the hidden field.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link getValue()}.
+ * @return string value of the hidden field
+ * @see getValue
+ * @since 3.1.0
+ */
+ public function getData()
+ {
+ return $this->getValue();
+ }
+
+ /**
+ * Sets the value of the hidden field.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link setValue()}.
+ * @param string value of the hidden field
+ * @see setValue
+ * @since 3.1.0
+ */
+ public function setData($value)
+ {
+ $this->setValue($value);
+ }
+
+
+ /**
* @return boolean whether theming is enabled for this control. Defaults to false.
*/
public function getEnableTheming()