API Documentation

Validate/InArray.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: InArray.php 20358 2010-01-17 19:03:49Z thomas $
Classes
Zend_Validate_InArray

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_InArray

Extends from
Zend_Validate_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
NOT_IN_ARRAY
Properties
$_messageTemplates
$_haystack
$_strict
$_recursive
Methods
__construct
getHaystack
setHaystack
getStrict
setStrict
getRecursive
setRecursive
isValid

Description

Constants

NOT_IN_ARRAY

 NOT_IN_ARRAY = 'notInArray'

Details

value
notInArray

Properties

$_haystack

array $_haystack = ''

Haystack of possible values

Details

$_haystack
array
visibility
protected
default
final
false
static
false

$_messageTemplates

array $_messageTemplates = 'array'

Details

$_messageTemplates
array
visibility
protected
default
array
final
false
static
false

$_recursive

boolean $_recursive = 'false'

Whether a recursive search should be done

Details

$_recursive
boolean
visibility
protected
default
false
final
false
static
false

$_strict

boolean $_strict = 'false'

Whether a strict in_array() invocation is used

Details

$_strict
boolean
visibility
protected
default
false
final
false
static
false

Methods

__construct

__construct(  $options ) : void

Sets validator options

Arguments
$options
Details
visibility
public
final
false
static
false

getHaystack

getHaystack( ) : mixed

Returns the haystack option

Output
mixed
Details
visibility
public
final
false
static
false

getRecursive

getRecursive( ) : boolean

Returns the recursive option

Output
boolean
Details
visibility
public
final
false
static
false

getStrict

getStrict( ) : boolean

Returns the strict option

Output
boolean
Details
visibility
public
final
false
static
false

isValid

isValid( mixed $value ) : boolean

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.

Arguments
$value
mixed
Output
boolean
Details
visibility
public
final
false
static
false

setHaystack

setHaystack( mixed $haystack ) : Zend_Validate_InArray

Sets the haystack option

Arguments
$haystack
mixed
Output
Zend_Validate_InArray
Provides a fluent interface
Details
visibility
public
final
false
static
false

setRecursive

setRecursive( boolean $recursive ) : Zend_Validate_InArray

Sets the recursive option

Arguments
$recursive
boolean
Output
Zend_Validate_InArray
Provides a fluent interface
Details
visibility
public
final
false
static
false

setStrict

setStrict( boolean $strict ) : Zend_Validate_InArray

Sets the strict option

Arguments
$strict
boolean
Output
Zend_Validate_InArray
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.