PageRenderTime 51ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/src/application/libraries/Zend/Validate/Interface.php

https://bitbucket.org/masnug/grc276-blog-laravel
PHP | 54 lines | 6 code | 2 blank | 46 comment | 0 complexity | f406d5497efbd054be505a4fdce3fab3 MD5 | raw file
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  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.
  14. *
  15. * @category Zend
  16. * @package Zend_Validate
  17. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id: Interface.php 23775 2011-03-01 17:25:24Z ralph $
  20. */
  21. /**
  22. * @category Zend
  23. * @package Zend_Validate
  24. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  25. * @license http://framework.zend.com/license/new-bsd New BSD License
  26. */
  27. interface Zend_Validate_Interface
  28. {
  29. /**
  30. * Returns true if and only if $value meets the validation requirements
  31. *
  32. * If $value fails validation, then this method returns false, and
  33. * getMessages() will return an array of messages that explain why the
  34. * validation failed.
  35. *
  36. * @param mixed $value
  37. * @return boolean
  38. * @throws Zend_Validate_Exception If validation of $value is impossible
  39. */
  40. public function isValid($value);
  41. /**
  42. * Returns an array of messages that explain why the most recent isValid()
  43. * call returned false. The array keys are validation failure message identifiers,
  44. * and the array values are the corresponding human-readable message strings.
  45. *
  46. * If isValid() was never called or if the most recent isValid() call
  47. * returned true, then this method returns an empty array.
  48. *
  49. * @return array
  50. */
  51. public function getMessages();
  52. }