Public Member Functions | |
__construct ($min, $max, $inclusive=true) | |
getMin () | |
setMin ($min) | |
getMax () | |
setMax ($max) | |
getInclusive () | |
setInclusive ($inclusive) | |
isValid ($value) | |
Data Fields | |
const | NOT_BETWEEN = 'notBetween' |
const | NOT_BETWEEN_STRICT = 'notBetweenStrict' |
Protected Attributes | |
$_messageTemplates | |
$_messageVariables | |
$_min | |
$_max | |
$_inclusive |
Definition at line 36 of file Between.php.
__construct | ( | $ | min, |
$ | max, | ||
$ | inclusive = true |
||
) |
Sets validator options
mixed | $min | |
mixed | $max | |
boolean | $inclusive |
Definition at line 100 of file Between.php.
getInclusive | ( | ) |
getMax | ( | ) |
getMin | ( | ) |
isValid | ( | $ | value ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value is between min and max options, inclusively if inclusive option is true.
mixed | $value |
Implements Zend_Validate_Interface.
Definition at line 182 of file Between.php.
setInclusive | ( | $ | inclusive ) |
Sets the inclusive option
boolean | $inclusive |
Definition at line 167 of file Between.php.
setMax | ( | $ | max ) |
Sets the max option
mixed | $max |
Definition at line 145 of file Between.php.
setMin | ( | $ | min ) |
Sets the min option
mixed | $min |
Definition at line 123 of file Between.php.
$_messageTemplates [protected] |
array( self::NOT_BETWEEN => "'%value%' is not between '%min%' and '%max%', inclusively", self::NOT_BETWEEN_STRICT => "'%value%' is not strictly between '%min%' and '%max%'" )
Reimplemented from Zend_Validate_Abstract.
Definition at line 53 of file Between.php.
$_messageVariables [protected] |
array( 'min' => '_min', 'max' => '_max' )
Reimplemented from Zend_Validate_Abstract.
Definition at line 63 of file Between.php.
const NOT_BETWEEN = 'notBetween' |
Validation failure message key for when the value is not between the min and max, inclusively
Definition at line 41 of file Between.php.
const NOT_BETWEEN_STRICT = 'notBetweenStrict' |
Validation failure message key for when the value is not strictly between the min and max
Definition at line 46 of file Between.php.