diff options
Diffstat (limited to 'framework/Web/UI/WebControls/THiddenField.php')
-rw-r--r-- | framework/Web/UI/WebControls/THiddenField.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THiddenField.php b/framework/Web/UI/WebControls/THiddenField.php index b920d1ad..54ecde08 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
+class THiddenField extends TControl implements IPostBackDataHandler, IValidatable
{
/**
* @return string tag name of the hidden field.
@@ -83,6 +83,16 @@ class THiddenField extends TControl implements IPostBackDataHandler }
/**
+ * Returns the value to be validated.
+ * This methid is required by IValidatable interface.
+ * @return mixed the value of the property to be validated.
+ */
+ public function getValidationPropertyValue()
+ {
+ return $this->getValue();
+ }
+
+ /**
* Raises postdata changed event.
* This method calls {@link onValueChanged} method.
* This method is primarly used by framework developers.
|