ClassInterface Zend_Validate_Interface

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

Located in /Validate/Interface.php (line 30)


	
			
Direct descendents
Class Description
 class Zend_Captcha_Adapter Generic Captcha adapter interface
Method Summary
 array getErrors ()
 array getMessages ()
 boolean isValid (mixed $value)
Methods
getErrors (line 69)

Returns an array of message codes that explain why a previous isValid() call returned false.

If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.

This is now the same as calling array_keys() on the return value from getMessages().

  • deprecated: Since 1.5.0
  • access: public
array getErrors ()
getMessages (line 55)

Returns an array of messages that explain why the most recent isValid() call returned false. The array keys are validation failure message identifiers, and the array values are the corresponding human-readable message strings.

If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.

  • access: public
array getMessages ()
isValid (line 43)

Returns true if and only if $value meets the validation requirements

If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.

  • throws: Zend_Valid_Exception If validation of $value is impossible
  • access: public
boolean isValid (mixed $value)
  • mixed $value

Documentation generated on Thu, 01 Apr 2010 13:11:51 -0400 by phpDocumentor 1.4.3