Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Between Class Reference
Inheritance diagram for Zend_Validate_Between:
Collaboration diagram for Zend_Validate_Between:

Public Member Functions

 __construct ($options)
 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 33 of file Between.php.


Constructor & Destructor Documentation

__construct ( options)

Sets validator options Accepts the following option keys: 'min' => scalar, minimum border 'max' => scalar, maximum border 'inclusive' => boolean, inclusive border values

Parameters:
array | Zend_Config$options
Returns:
void

Definition at line 99 of file Between.php.

Here is the call graph for this function:


Member Function Documentation

Returns the inclusive option

Returns:
boolean

Definition at line 180 of file Between.php.

getMax ( )

Returns the max option

Returns:
mixed

Definition at line 158 of file Between.php.

getMin ( )

Returns the min option

Returns:
mixed

Definition at line 136 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 206 of file Between.php.

Here is the call graph for this function:

setInclusive ( inclusive)

Sets the inclusive option

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

Definition at line 191 of file Between.php.

setMax ( max)

Sets the max option

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

Definition at line 169 of file Between.php.

setMin ( min)

Sets the min option

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

Definition at line 147 of file Between.php.

Here is the caller graph for this function:


Field Documentation

$_inclusive [protected]

Definition at line 87 of file Between.php.

$_max [protected]

Definition at line 77 of file Between.php.

$_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 50 of file Between.php.

$_messageVariables [protected]
Initial value:
 array(
        'min' => '_min',
        'max' => '_max'
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 60 of file Between.php.

$_min [protected]

Definition at line 70 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 38 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 43 of file Between.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations