summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TBaseValidator.php
diff options
context:
space:
mode:
authorwei <>2006-07-02 05:50:29 +0000
committerwei <>2006-07-02 05:50:29 +0000
commit875efd1707a2ac5307b24181ddd7e0420bff5854 (patch)
treea7e3fa5da5aad29cba83f56b47a92d6126ef88f7 /framework/Web/UI/WebControls/TBaseValidator.php
parent4009bc98e96c38d22b3c199f3bfefe4c30783d00 (diff)
fixed 3.02 bug
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index 3b2f0ec6..5917f313 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -647,12 +647,30 @@ class TValidatorClientScript extends TComponent
}
/**
+ * @param boolean true to revalidate when the control to validate changes value.
+ */
+ public function setObserveChanges($value)
+ {
+ $this->_options->add('ObserveChanges', TPropertyValue::ensureBoolean($value));
+ }
+
+ /**
+ * @return boolean true to observe changes.
+ */
+ public function getObserveChanges()
+ {
+ $changes = $this->_options->itemAt('ObserveChanges');
+ return is_null($changes) ? true : $changes;
+ }
+
+ /**
* @return array list of client-side event code.
*/
public function getOptions()
{
return $this->_options->toArray();
}
+
/**
* Ensure the string is a valid javascript function. If the string begins