You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomMessageProvider.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3. /**
  4. * This file is part of the PEAR Console_CommandLine package.
  5. *
  6. * PHP version 5
  7. *
  8. * LICENSE: This source file is subject to the MIT license that is available
  9. * through the world-wide-web at the following URI:
  10. * http://opensource.org/licenses/mit-license.php
  11. *
  12. * @category Console
  13. * @package Console_CommandLine
  14. * @author David JEAN LOUIS <izimobil@gmail.com>
  15. * @author Michael Gauthier <mike@silverorange.com>
  16. * @copyright 2007 David JEAN LOUIS, 2009 silverorange
  17. * @license http://opensource.org/licenses/mit-license.php MIT License
  18. * @version CVS: $Id$
  19. * @link http://pear.php.net/package/Console_CommandLine
  20. * @since File available since release 1.1.0
  21. * @filesource
  22. */
  23. /**
  24. * Common interfacefor message providers that allow overriding with custom
  25. * messages
  26. *
  27. * Message providers may optionally implement this interface.
  28. *
  29. * @category Console
  30. * @package Console_CommandLine
  31. * @author David JEAN LOUIS <izimobil@gmail.com>
  32. * @author Michael Gauthier <mike@silverorange.com>
  33. * @copyright 2007 David JEAN LOUIS, 2009 silverorange
  34. * @license http://opensource.org/licenses/mit-license.php MIT License
  35. * @version Release: 1.2.2
  36. * @link http://pear.php.net/package/Console_CommandLine
  37. * @since Interface available since release 1.1.0
  38. */
  39. interface Console_CommandLine_CustomMessageProvider
  40. {
  41. // getWithCustomMesssages() {{{
  42. /**
  43. * Retrieves the given string identifier corresponding message.
  44. *
  45. * For a list of identifiers please see the provided default message
  46. * provider.
  47. *
  48. * @param string $code The string identifier of the message
  49. * @param array $vars An array of template variables
  50. * @param array $messages An optional array of messages to use. Array
  51. * indexes are message codes.
  52. *
  53. * @return string
  54. * @see Console_CommandLine_MessageProvider
  55. * @see Console_CommandLine_MessageProvider_Default
  56. */
  57. public function getWithCustomMessages(
  58. $code, $vars = array(), $messages = array()
  59. );
  60. // }}}
  61. }