|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
Definition at line 33 of file Between.php.
| __construct | ( | $ | options | ) |
Sets validator options Accepts the following option keys: 'min' => scalar, minimum border 'max' => scalar, maximum border 'inclusive' => boolean, inclusive border values
| array | Zend_Config | $options |
Definition at line 99 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 206 of file Between.php.

| setInclusive | ( | $ | inclusive | ) |
Sets the inclusive option
| boolean | $inclusive |
Definition at line 191 of file Between.php.
| setMax | ( | $ | max | ) |
Sets the max option
| mixed | $max |
Definition at line 169 of file Between.php.
| setMin | ( | $ | min | ) |
Sets the min option
| mixed | $min |
Definition at line 147 of file Between.php.

$_inclusive [protected] |
Definition at line 87 of file Between.php.
$_max [protected] |
Definition at line 77 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 50 of file Between.php.
$_messageVariables [protected] |
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.