Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Between Class Reference

Inheritance diagram for Zend_Validate_Between:
Zend_Validate_Abstract Zend_Validate_Interface

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

Detailed Description

Definition at line 36 of file Between.php.


Constructor & Destructor Documentation

__construct ( min,
max,
inclusive = true 
)

Sets validator options

Parameters:
mixed$min
mixed$max
boolean$inclusive
Returns:
void

Definition at line 100 of file Between.php.


Member Function Documentation

getInclusive (  )

Returns the inclusive option

Returns:
boolean

Definition at line 156 of file Between.php.

getMax (  )

Returns the max option

Returns:
mixed

Definition at line 134 of file Between.php.

getMin (  )

Returns the min option

Returns:
mixed

Definition at line 112 of file Between.php.

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.

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 182 of file Between.php.

setInclusive ( inclusive )

Sets the inclusive option

Parameters:
boolean$inclusive
Returns:
Zend_Validate_Between Provides a fluent interface

Definition at line 167 of file Between.php.

setMax ( max )

Sets the max option

Parameters:
mixed$max
Returns:
Zend_Validate_Between Provides a fluent interface

Definition at line 145 of file Between.php.

setMin ( min )

Sets the min option

Parameters:
mixed$min
Returns:
Zend_Validate_Between Provides a fluent interface

Definition at line 123 of file Between.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 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]
Initial value:
 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.


The documentation for this class was generated from the following file: