Public Member Functions | |
__construct (array $haystack, $strict=false) | |
getHaystack () | |
setHaystack (array $haystack) | |
getStrict () | |
setStrict ($strict) | |
isValid ($value) | |
Data Fields | |
const | NOT_IN_ARRAY = 'notInArray' |
Protected Attributes | |
$_messageTemplates | |
$_haystack | |
$_strict |
Definition at line 36 of file InArray.php.
__construct | ( | array $ | haystack, |
$ | strict = false |
||
) |
Sets validator options
array | $haystack | |
boolean | $strict |
Definition at line 69 of file InArray.php.
getHaystack | ( | ) |
getStrict | ( | ) |
isValid | ( | $ | value ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value is contained in the haystack option. If the strict option is true, then the type of $value is also checked.
mixed | $value |
Implements Zend_Validate_Interface.
Definition at line 128 of file InArray.php.
setHaystack | ( | array $ | haystack ) |
Sets the haystack option
mixed | $haystack |
Definition at line 91 of file InArray.php.
setStrict | ( | $ | strict ) |
Sets the strict option
boolean | $strict |
Definition at line 113 of file InArray.php.
$_messageTemplates [protected] |
array(
self::NOT_IN_ARRAY => "'%value%' was not found in the haystack"
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 44 of file InArray.php.