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

Source for file Command.php

Documentation is available at Command.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.  * @copyright 2007 David JEAN LOUIS
  18.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  19.  * @version   CVS: $Id$
  20.  * @link      http://pear.php.net/package/Console_CommandLine
  21.  * @since     File available since release 0.1.0
  22.  * @filesource
  23.  */
  24.  
  25. /**
  26.  * File containing the parent class.
  27.  */
  28. require_once 'Console/CommandLine.php';
  29.  
  30. /**
  31.  * Class that represent a command with option and arguments.
  32.  *
  33.  * This class exist just to clarify the interface but at the moment it is
  34.  * strictly identical to Console_CommandLine class, it could change in the
  35.  * future though.
  36.  *
  37.  * @category  Console
  38.  * @package   Console_CommandLine
  39.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  40.  * @copyright 2007 David JEAN LOUIS
  41.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  42.  * @version   Release: 1.2.0
  43.  * @link      http://pear.php.net/package/Console_CommandLine
  44.  * @since     Class available since release 0.1.0
  45.  */
  46. {
  47.     // Public properties {{{
  48.  
  49.     /**
  50.      * An array of aliases for the subcommand.
  51.      *
  52.      * @var array $aliases Aliases for the subcommand.
  53.      */
  54.     public $aliases = array();
  55.  
  56.     // }}}
  57.     // __construct() {{{
  58.  
  59.     /**
  60.      * Constructor.
  61.      *
  62.      * @param array  $params An optional array of parameters
  63.      *
  64.      * @return void 
  65.      */
  66.     public function __construct($params = array()) 
  67.     {
  68.         if (isset($params['aliases'])) {
  69.             $this->aliases = $params['aliases'];
  70.         }
  71.         parent::__construct($params);
  72.     }
  73.  
  74.     // }}}
  75. }

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