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 $_errors
 array $_messages
 array $_validators
Method Summary
 static boolean is (mixed $value, string $classBaseName, [ $args = array()], [mixed $namespaces = array()])
 Zend_Validate addValidator (Zend_Validate_Interface $validator, [boolean $breakChainOnFailure = false])
 array getErrors ()
 array getMessages ()
 boolean isValid (mixed $value)
Variables
array $_errors = array() (line 57)

Array of validation failure messages

  • access: protected
array $_messages = array() (line 50)

Array of validation failure messages

  • access: protected
array $_validators = array() (line 43)

Validator chain

  • access: protected
Methods
static is (line 135)
  • throws: Zend_Validate_Exception
  • access: public
static boolean is (mixed $value, string $classBaseName, [ $args = array()], [mixed $namespaces = array()])
  • mixed $value
  • string $classBaseName
  • array $args: OPTIONAL
  • mixed $namespaces: OPTIONAL
addValidator (line 69)

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])
getErrors (line 122)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

  • access: public
array getErrors ()

Implementation of:
Zend_Validate_Interface::getErrors()
Returns an array of errors that explain why a previous isValid() call returned false.
getMessages (line 110)

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 83)

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 Sun, 27 May 2007 23:28:23 -0700 by phpDocumentor 1.3.2