From e392ecbf6e422825083bc7204eacb7090619a47c Mon Sep 17 00:00:00 2001
From: xue <>
Date: Fri, 21 Apr 2006 12:36:06 +0000
Subject: Merge from 3.0 branch till 953.
---
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