diff options
| author | wei <> | 2006-04-21 11:41:21 +0000 | 
|---|---|---|
| committer | wei <> | 2006-04-21 11:41:21 +0000 | 
| commit | e1e034ced29b0b9bf11a49798b4fba4d3dd0164d (patch) | |
| tree | 92120227f58c2463ddb50b1592dde0436d175189 /framework/Web/UI/WebControls/TCompareValidator.php | |
| parent | e57fc66ee3f5259b4f7cbd18a1cd0f6da6176f5d (diff) | |
Update javascript libraries, rewrote client-side validators, removed some js files, simplified javascript compression.
Diffstat (limited to 'framework/Web/UI/WebControls/TCompareValidator.php')
| -rw-r--r-- | framework/Web/UI/WebControls/TCompareValidator.php | 13 | 
1 files changed, 7 insertions, 6 deletions
| 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');   * - <b>Integer</b> A 32-bit signed integer data type.
   * - <b>Float</b> A double-precision floating point number data type.
   * - <b>Currency</b> A decimal data type that can contain currency symbols.
 - * - <b>Date</b> A date data type. The format follows the GNU date syntax.
 + * - <b>Date</b> A date data type. The format can be specified by the 
 + * {@link setDateFormat DateFormat} property 
   * - <b>String</b> 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;
  	}
  }
 | 
