2002-02-23 15:32:36 +00:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | PHP Version 4 |
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | Copyright (c) 1997-2002 The PHP Group |
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
// | that is bundled with this package in the file LICENSE, and is |
|
|
|
|
// | available at through the world-wide-web at |
|
|
|
|
// | http://www.php.net/license/2_02.txt. |
|
|
|
|
// | If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
// | obtain it through the world-wide-web, please send a note to |
|
|
|
|
// | license@php.net so we can mail you a copy immediately. |
|
|
|
|
// +----------------------------------------------------------------------+
|
2002-02-28 08:29:35 +00:00
|
|
|
// | Author: Stig Bakken <ssb@fast.no> |
|
2002-02-23 15:32:36 +00:00
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
require_once "PEAR.php";
|
|
|
|
|
|
|
|
class PEAR_Command_Common extends PEAR
|
|
|
|
{
|
2002-03-01 09:43:18 +00:00
|
|
|
/**
|
|
|
|
* PEAR_Config object used to pass user system and configuration
|
|
|
|
* on when executing commands
|
|
|
|
*
|
|
|
|
* @var object
|
|
|
|
*/
|
|
|
|
var $config;
|
|
|
|
|
2002-03-18 17:39:52 +00:00
|
|
|
/**
|
|
|
|
* User Interface object, for all interaction with the user.
|
|
|
|
* @var object
|
|
|
|
*/
|
|
|
|
var $ui;
|
|
|
|
|
2002-03-01 09:43:18 +00:00
|
|
|
/**
|
|
|
|
* PEAR_Command_Common constructor.
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
*/
|
2002-03-21 11:10:17 +00:00
|
|
|
function PEAR_Command_Common(&$ui, &$config)
|
2002-02-23 15:32:36 +00:00
|
|
|
{
|
|
|
|
parent::PEAR();
|
2002-03-22 09:22:28 +00:00
|
|
|
$this->config = &$config;
|
|
|
|
$this->ui = &$ui;
|
2002-02-23 15:32:36 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 20:52:26 +00:00
|
|
|
function getOptions()
|
|
|
|
{
|
|
|
|
return array();
|
|
|
|
}
|
|
|
|
|
2002-04-01 14:32:40 +00:00
|
|
|
function getHelp($command)
|
|
|
|
{
|
|
|
|
return array(null, 'No help avaible yet');
|
|
|
|
}
|
2002-02-23 15:32:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|