Class Zend_Validate

Description

Implements interfaces:

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

Located in /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])
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 Sat, 05 May 2007 11:58:42 -0700 by phpDocumentor 1.3.2