7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Validate
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
24 * @package Zend_Validate
25 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
26 * @license http://framework.zend.com/license/new-bsd New BSD License
28 interface Zend_Validate_Interface
31 * Returns true if and only if $value meets the validation requirements
33 * If $value fails validation, then this method returns false, and
34 * getMessages() will return an array of messages that explain why the
39 * @throws Zend_Valid_Exception If validation of $value is impossible
41 public function isValid($value);
44 * Returns an array of messages that explain why the most recent isValid()
45 * call returned false. The array keys are validation failure message identifiers,
46 * and the array values are the corresponding human-readable message strings.
48 * If isValid() was never called or if the most recent isValid() call
49 * returned true, then this method returns an empty array.
53 public function getMessages();