Public Member Functions | |
| __construct ($min=0.0, $max=null) | |
| Create a new AnewtValidatorFloat. | |
| is_valid ($value) | |
| Checks for validity. | |
Private Attributes | |
| $_min | |
| Minimal value. | |
| $_max | |
| Maximal value. | |
This validator checks whether the value is or looks like a floating point number and is between the minimum and maximum value.
Definition at line 75 of file numeric.lib.php.
| AnewtValidatorFloat::__construct | ( | $ | min = 0.0, |
|
| $ | max = null | |||
| ) |
Create a new AnewtValidatorFloat.
| $min | Minimum allowable value. Provide null for no limit. Defaults to 0. | |
| $max | Maximum allowable value. Provide null for no limit. Defaults to null. |
Definition at line 89 of file numeric.lib.php.
| AnewtValidatorFloat::is_valid | ( | $ | value | ) |
Checks for validity.
The return value should be true for valid values, and false otherwise.
| $value | The value to check for validity. |
Reimplemented from AnewtValidator.
Definition at line 100 of file numeric.lib.php.
1.5.9