From e1e034ced29b0b9bf11a49798b4fba4d3dd0164d Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 21 Apr 2006 11:41:21 +0000 Subject: Update javascript libraries, rewrote client-side validators, removed some js files, simplified javascript compression. --- framework/Web/UI/WebControls/TCompareValidator.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'framework/Web/UI/WebControls/TCompareValidator.php') diff --git a/framework/Web/UI/WebControls/TCompareValidator.php b/framework/Web/UI/WebControls/TCompareValidator.php index 1bf4c529..172e472f 100644 --- a/framework/Web/UI/WebControls/TCompareValidator.php +++ b/framework/Web/UI/WebControls/TCompareValidator.php @@ -32,7 +32,8 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); * - Integer A 32-bit signed integer data type. * - Float A double-precision floating point number data type. * - Currency A decimal data type that can contain currency symbols. - * - Date A date data type. The format follows the GNU date syntax. + * - Date A date data type. The format can be specified by the + * {@link setDateFormat DateFormat} property * - String A string data type. * * Use the {@link setOperator Operator} property to specify the type of comparison @@ -220,15 +221,15 @@ class TCompareValidator extends TBaseValidator if(($name=$this->getControlToCompare())!=='') { if(($control=$this->findControl($name))!==null) - $options['controltocompare']=$options['controlhookup']=$control->getClientID(); + $options['ControlToCompare']=$control->getClientID(); } if(($value=$this->getValueToCompare())!=='') - $options['valuetocompare']=$value; + $options['ValueToCompare']=$value; if(($operator=$this->getOperator())!=='Equal') - $options['operator']=$operator; - $options['type']=$this->getDataType(); + $options['Operator']=$operator; + $options['DataType']=$this->getDataType(); if(($dateFormat=$this->getDateFormat())!=='') - $options['dateformat']=$dateFormat; + $options['DateFormat']=$dateFormat; return $options; } } -- cgit v1.2.3