Console_CommandLine
[ class tree: Console_CommandLine ] [ index: Console_CommandLine ] [ all elements ]

Source for file CustomMessageProvider.php

Documentation is available at CustomMessageProvider.php

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

Documentation generated on Mon, 11 Mar 2019 15:51:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.