PHP Class Prado\Web\UI\WebControls\TDataTypeValidator
TDataTypeValidator verifies if the input data is of the type specified
by {@link setDataType DataType}.
The following data types are supported:
-
Integer A 32-bit signed integer data type.
-
Float A double-precision floating point number data type.
-
Date A date data type.
-
String A string data type.
For
Date type, the property {@link setDateFormat DateFormat}
will be used to determine how to parse the date string. If it is not
provided, the string will be assumed to be in GNU datetime format.
Afficher le fichier
Open project: pradosoft/prado
Class Usage Examples
Méthodes publiques
Méthodes protégées
Method Details
evaluateDataTypeCheck()
protected méthode
Determine if the given value is of a particular type using RegExp.
evaluateIsValid()
public méthode
The validation succeeds if the input data is of valid type.
The validation always succeeds if ControlToValidate is not specified
or the input data is empty.
getClientClassName()
protected méthode
This method overrides the parent implementation.
getClientScriptOptions()
protected méthode
Returns an array of javascript validator options.
getDataType()
public méthode
public getDataType ( ) : TValidationDataType |
Résultat |
TValidationDataType |
the data type that the values being compared are converted to before the comparison is made. Defaults to TValidationDataType::String. |
setDataType()
public méthode
Sets the data type that the values being compared are converted to before the comparison is made.