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


Public Member Functions | |
| __construct ($options) | |
| getHaystack () | |
| setHaystack (array $haystack) | |
| getStrict () | |
| setStrict ($strict) | |
| getRecursive () | |
| setRecursive ($recursive) | |
| isValid ($value) | |
Data Fields | |
| const | NOT_IN_ARRAY = 'notInArray' |
Protected Attributes | |
| $_messageTemplates | |
| $_haystack | |
| $_strict = false | |
| $_recursive = false | |
Definition at line 33 of file InArray.php.
| __construct | ( | $ | options | ) |
Sets validator options
| array | Zend_Config | $haystack |
Definition at line 71 of file InArray.php.

| getHaystack | ( | ) |
| getRecursive | ( | ) |
Returns the recursive option
Definition at line 155 of file InArray.php.

| 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 181 of file InArray.php.

| setHaystack | ( | array $ | haystack | ) |
Sets the haystack option
| mixed | $haystack |
Definition at line 122 of file InArray.php.

| setRecursive | ( | $ | recursive | ) |
Sets the recursive option
| boolean | $recursive |
Definition at line 166 of file InArray.php.

| setStrict | ( | $ | strict | ) |
Sets the strict option
| boolean | $strict |
Definition at line 144 of file InArray.php.

$_haystack [protected] |
Definition at line 49 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 40 of file InArray.php.
$_recursive = false [protected] |
Definition at line 63 of file InArray.php.
$_strict = false [protected] |
Definition at line 56 of file InArray.php.
| const NOT_IN_ARRAY = 'notInArray' |
Definition at line 35 of file InArray.php.