## Zend_Validate

Description

Implements interfaces:

- Zend_Validate_Interface

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

Located in /Zend/Validate.php (line 36)

Variable Summary
array $_messages
array $_validators
Method Summary
Zend_Validate addValidator (Zend_Validate_Interface $validator, [boolean $breakChainOnFailure = false])
array getMessages ()
boolean isValid (mixed $value)
Variables
array $_messages = array() (line 50)

Array of validation failure messages

- access: protected

array $_validators = array() (line 43)

Validator chain

- access: protected

Methods
addValidator (line 62)

Adds a validator to the end of the chain

If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.

- return: Provides a fluent interface
- access: public

Zend_Validate addValidator (Zend_Validate_Interface $validator, [boolean $breakChainOnFailure = false])

- Zend_Validate_Interface $validator
- boolean $breakChainOnFailure

getMessages (line 101)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

- access: public

array getMessages ()

Implementation of:

Zend_Validate_Interface::getMessages()
  Returns an array of messages that explain why a previous isValid() call returned false

isValid (line 76)

Returns true if and only if $value passes all validations in the chain

Validators are run in the order in which they were added to the chain (FIFO).

- access: public

boolean isValid (mixed $value)

- mixed $value

Implementation of:

Zend_Validate_Interface::isValid()
  Returns true if and only if $value meets the validation requirements

Documentation generated on Wed, 21 Feb 2007 12:01:23 -0800 by phpDocumentor 1.3.1