[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TRangeValidator class file
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TRangeValidator.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 331 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TRangeValidator:: (18 méthodes):
getClientClassName()
getMinValue()
setMinValue()
getMaxValue()
setMaxValue()
getDataType()
setDataType()
setDateFormat()
getDateFormat()
setCharset()
getCharset()
evaluateIsValid()
isValidInteger()
isValidFloat()
isValidDate()
isValidString()
isValidStringLength()
getClientScriptOptions()
TRangeValidationDataType:: (0 méthodes):
Classe: TRangeValidator - X-Ref
TRangeValidator classgetClientClassName() X-Ref |
Gets the name of the javascript class responsible for performing validation for this control. This method overrides the parent implementation. return: string the javascript class name |
getMinValue() X-Ref |
return: string the minimum value of the validation range. |
setMinValue($value) X-Ref |
Sets the minimum value of the validation range. param: string the minimum value |
getMaxValue() X-Ref |
return: string the maximum value of the validation range. |
setMaxValue($value) X-Ref |
Sets the maximum value of the validation range. param: string the maximum value |
getDataType() X-Ref |
return: TRangeValidationDataType the data type that the values being compared are |
setDataType($value) X-Ref |
Sets the data type that the values being compared are converted to before the comparison is made. param: TRangeValidationDataType the data type |
setDateFormat($value) X-Ref |
Sets the date format for a date validation param: string the date format value |
getDateFormat() X-Ref |
return: string the date validation date format if any |
setCharset($value) X-Ref |
param: string charset for string length comparison. |
getCharset() X-Ref |
return: string charset for string length comparison. |
evaluateIsValid() X-Ref |
This method overrides the parent's implementation. The validation succeeds if the input data is within the range. The validation always succeeds if the input data is empty. return: boolean whether the validation succeeds |
isValidInteger($value) X-Ref |
Determine if the value is within the integer range. param: string value to validate true return: boolean true if within integer range. |
isValidFloat($value) X-Ref |
Determine if the value is within the specified float range. param: string value to validate return: boolean true if within range. |
isValidDate($value) X-Ref |
Determine if the date is within the specified range. Uses pradoParseDate and strtotime to get the date from string. param: string date as string to validate return: boolean true if within range. |
isValidString($value) X-Ref |
Compare the string with a minimum and a maxiumum value. Uses strcmp for comparision. param: string value to compare with. return: boolean true if the string is within range. |
isValidStringLength($value) X-Ref |
param: string string for comparision return: boolean true if min and max string length are satisfied. |
getClientScriptOptions() X-Ref |
Returns an array of javascript validator options. return: array javascript validator options. |
Classe: TRangeValidationDataType - X-Ref
TRangeValidationDataType class.Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |