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

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

Detailed Description

Definition at line 33 of file InArray.php.


Constructor & Destructor Documentation

__construct ( options)

Sets validator options

Parameters:
array | Zend_Config$haystack
Returns:
void

Definition at line 71 of file InArray.php.

Here is the call graph for this function:


Member Function Documentation

Returns the haystack option

Returns:
mixed

Definition at line 111 of file InArray.php.

Returns the recursive option

Returns:
boolean

Definition at line 155 of file InArray.php.

Here is the caller graph for this function:

getStrict ( )

Returns the strict option

Returns:
boolean

Definition at line 133 of file InArray.php.

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.

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 181 of file InArray.php.

Here is the call graph for this function:

setHaystack ( array haystack)

Sets the haystack option

Parameters:
mixed$haystack
Returns:
Zend_Validate_InArray Provides a fluent interface

Definition at line 122 of file InArray.php.

Here is the caller graph for this function:

setRecursive ( recursive)

Sets the recursive option

Parameters:
boolean$recursive
Returns:
Zend_Validate_InArray Provides a fluent interface

Definition at line 166 of file InArray.php.

Here is the caller graph for this function:

setStrict ( strict)

Sets the strict option

Parameters:
boolean$strict
Returns:
Zend_Validate_InArray Provides a fluent interface

Definition at line 144 of file InArray.php.

Here is the caller graph for this function:


Field Documentation

$_haystack [protected]

Definition at line 49 of file InArray.php.

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


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