source: trunk/www.guidonia.net/wp/wp-content/plugins/webtv/Drivers/Zend/Validate/Interface.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.3 KB
Line 
1<?php
2
3/**
4 * Zend Framework
5 *
6 * LICENSE
7 *
8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
15 *
16 * @category Zend
17 * @package Zend_Validate
18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Interface.php 8064 2008-02-16 10:58:39Z thomas $
21 */
22
23
24/**
25 * @category Zend
26 * @package Zend_Validate
27 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
28 * @license http://framework.zend.com/license/new-bsd New BSD License
29 */
30interface Zend_Validate_Interface
31{
32 /**
33 * Returns true if and only if $value meets the validation requirements
34 *
35 * If $value fails validation, then this method returns false, and
36 * getMessages() will return an array of messages that explain why the
37 * validation failed.
38 *
39 * @param mixed $value
40 * @return boolean
41 * @throws Zend_Valid_Exception If validation of $value is impossible
42 */
43 public function isValid($value);
44
45 /**
46 * Returns an array of messages that explain why the most recent isValid()
47 * call returned false. The array keys are validation failure message identifiers,
48 * and the array values are the corresponding human-readable message strings.
49 *
50 * If isValid() was never called or if the most recent isValid() call
51 * returned true, then this method returns an empty array.
52 *
53 * @return array
54 */
55 public function getMessages();
56
57 /**
58 * Returns an array of message codes that explain why a previous isValid() call
59 * returned false.
60 *
61 * If isValid() was never called or if the most recent isValid() call
62 * returned true, then this method returns an empty array.
63 *
64 * This is now the same as calling array_keys() on the return value from getMessages().
65 *
66 * @return array
67 * @deprecated Since 1.5.0
68 */
69 public function getErrors();
70
71}
Note: See TracBrowser for help on using the repository browser.