diff options
author | wei <> | 2006-04-25 07:01:04 +0000 |
---|---|---|
committer | wei <> | 2006-04-25 07:01:04 +0000 |
commit | 8b0c8f0d0557d8ab88409cd9691cd1ee279321d5 (patch) | |
tree | 2c570f0d3839089edbb7e53244adcd2db98cb992 /framework/Web/UI | |
parent | 7fa4dd96f1ac0c57e6c67faf9f9dda46f1dd1b89 (diff) |
Complete #70, update TDateFormat, NumberFormat add zerofill. Update TDatePicker quickstart doc, I18N quickstart doc.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/TDataTypeValidator.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TDataTypeValidator.php b/framework/Web/UI/WebControls/TDataTypeValidator.php index d78be7bf..ebcaace7 100644 --- a/framework/Web/UI/WebControls/TDataTypeValidator.php +++ b/framework/Web/UI/WebControls/TDataTypeValidator.php @@ -99,6 +99,19 @@ class TDataTypeValidator extends TBaseValidator }
/**
+ * Returns an array of javascript validator options.
+ * @return array javascript validator options.
+ */
+ protected function getClientScriptOptions()
+ {
+ $options = parent::getClientScriptOptions();
+ $options['DataType']=$this->getDataType();
+ if(($dateFormat=$this->getDateFormat())!=='')
+ $options['DateFormat']=$dateFormat;
+ return $options;
+ }
+
+ /**
* This method overrides the parent's implementation.
* The validation succeeds if the input data is of valid type.
* The validation always succeeds if ControlToValidate is not specified
|