Class Zend_Validate_InArray

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/InArray.php (line 33)

Zend_Validate_Abstract
   |
   --Zend_Validate_InArray
Class Constant Summary
 NOT_IN_ARRAY = 'notInArray'
Variable Summary
 array $_haystack
 boolean $_recursive
 boolean $_strict
Method Summary
 void __construct ( $options, array|Zend_Config $haystack)
 mixed getHaystack ()
 boolean getRecursive ()
 boolean getStrict ()
 boolean isValid (mixed $value)
 Zend_Validate_InArray setRecursive (boolean $recursive)
 Zend_Validate_InArray setStrict (boolean $strict)
Variables
array $_haystack (line 49)

Haystack of possible values

  • access: protected
array $_messageTemplates = array(
self::NOT_IN_ARRAY => "'%value%' was not found in the haystack",
)
(line 40)
  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions
boolean $_recursive = false (line 63)

Whether a recursive search should be done

  • access: protected
boolean $_strict = false (line 56)

Whether a strict in_array() invocation is used

  • access: protected

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Methods
Constructor __construct (line 71)

Sets validator options

  • access: public
void __construct ( $options, array|Zend_Config $haystack)
getHaystack (line 111)

Returns the haystack option

  • access: public
mixed getHaystack ()
getRecursive (line 155)

Returns the recursive option

  • access: public
boolean getRecursive ()
getStrict (line 133)

Returns the strict option

  • access: public
boolean getStrict ()
isValid (line 181)

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.

  • access: public
boolean isValid (mixed $value)
  • mixed $value
setHaystack (line 122)

Sets the haystack option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_InArray setHaystack ( $haystack)
  • mixed $haystack
setRecursive (line 166)

Sets the recursive option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_InArray setRecursive (boolean $recursive)
  • boolean $recursive
setStrict (line 144)

Sets the strict option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_InArray setStrict (boolean $strict)
  • boolean $strict

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getDefaultTranslator()
 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessageLength()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::getMessageTemplates()
 Zend_Validate_Abstract::getMessageVariables()
 Zend_Validate_Abstract::getObscureValue()
 Zend_Validate_Abstract::getTranslator()
 Zend_Validate_Abstract::hasDefaultTranslator()
 Zend_Validate_Abstract::hasTranslator()
 Zend_Validate_Abstract::setDefaultTranslator()
 Zend_Validate_Abstract::setDisableTranslator()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessageLength()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::setObscureValue()
 Zend_Validate_Abstract::setTranslator()
 Zend_Validate_Abstract::translatorIsDisabled()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
NOT_IN_ARRAY = 'notInArray' (line 35)

Documentation generated on Mon, 21 Jun 2010 15:28:46 -0400 by phpDocumentor 1.4.3