*/
class PEAR_Command_Auth extends PEAR_Command_Common
{
+ // {{{ properties
+
var $commands = array(
'login' => array(
'summary' => 'Connects and authenticates to remote server',
);
+ // }}}
+
+ // {{{ constructor
+
/**
* PEAR_Command_Auth constructor.
*
parent::PEAR_Command_Common($ui, $config);
}
+ // }}}
+
+ // {{{ doLogin()
+
/**
* Execute the 'login' command.
*
}
+ // }}}
+ // {{{ doLogout()
+
/**
* Execute the 'logout' command.
*
$this->config->store();
}
+ // }}}
}
?>
\ No newline at end of file
*/
class PEAR_Command_Build extends PEAR_Command_Common
{
+ // {{{ properties
+
var $commands = array(
'build' => array(
'summary' => 'Build an Extension From C Source',
),
);
+ // }}}
+
+ // {{{ constructor
+
/**
* PEAR_Command_Build constructor.
*
parent::PEAR_Command_Common($ui, $config);
}
+ // }}}
+
+ // {{{ doBuild()
+
function doBuild($command, $options, $params)
{
if (sizeof($params) < 1) {
return true;
}
+ // }}}
+ // {{{ buildCallback()
+
function buildCallback($what, $data)
{
if (($what == 'cmdoutput' && $this->verbose > 1) ||
$this->ui->outputData(rtrim($data), 'build');
}
}
+
+ // }}}
}
*/
class PEAR_Command_Config extends PEAR_Command_Common
{
+ // {{{ properties
+
var $commands = array(
'config-show' => array(
'summary' => 'Show All Settings',
),
);
+ // }}}
+ // {{{ constructor
+
/**
* PEAR_Command_Config constructor.
*
parent::PEAR_Command_Common($ui, $config);
}
+ // }}}
+
+ // {{{ doConfigShow()
+
function doConfigShow($command, $options, $params)
{
// $params[0] -> the layer
return true;
}
+ // }}}
+ // {{{ doConfigGet()
+
function doConfigGet($command, $options, $params)
{
// $params[0] -> the parameter
return true;
}
+ // }}}
+ // {{{ doConfigSet()
+
function doConfigSet($command, $options, $params)
{
// $param[0] -> a parameter to set
return true;
}
+ // }}}
+ // {{{ doConfigHelp()
+
function doConfigHelp($command, $options, $params)
{
if (empty($params)) {
$this->ui->outputData($data, $command);
}
+ // }}}
+ // {{{ _checkLayer()
+
/**
* Checks if a layer is defined or not
*
return false;
}
+ // }}}
}
?>
\ No newline at end of file
*/
class PEAR_Command_Install extends PEAR_Command_Common
{
- // {{{ command definitions
+ // {{{ properties
var $commands = array(
'install' => array(
// }}}
+ // {{{ doInstall()
+
function doInstall($command, $options, $params)
{
if (empty($this->installer)) {
return true;
}
+ // }}}
+ // {{{ doUninstall()
+
function doUninstall($command, $options, $params)
{
if (empty($this->installer)) {
return true;
}
+ // }}}
}
?>
class PEAR_Command_Package extends PEAR_Command_Common
{
+ // {{{ properties
+
var $commands = array(
'package' => array(
'summary' => 'Build Package',
var $output;
+ // }}}
+ // {{{ constructor
+
/**
* PEAR_Command_Package constructor.
*
parent::PEAR_Command_Common($ui, $config);
}
+ // }}}
+
+ // {{{ _displayValidationResults()
+
function _displayValidationResults($err, $warn, $strict = false)
{
foreach ($err as $e) {
return true;
}
+ // }}}
+ // {{{ doPackage()
+
function doPackage($command, $options, $params)
{
$this->output = '';
return true;
}
+ // }}}
+ // {{{ doPackageValidate()
+
function doPackageValidate($command, $options, $params)
{
$this->output = '';
return true;
}
+ // }}}
+ // {{{ doCvsTag()
+
function doCvsTag($command, $options, $params)
{
$this->output = '';
return true;
}
+ // }}}
+ // {{{ doRunTests()
+
function doRunTests($command, $options, $params)
{
$cwd = getcwd();
return true;
}
+ // }}}
+ // {{{ doPackageDependencies()
+
function doPackageDependencies($command, $options, $params)
{
// $params[0] -> the PEAR package to list its information
$this->ui->outputData("This package does not have any dependencies.", $command);
}
+ // }}}
+ // {{{ doSign()
+
function doSign($command, $options, $params)
{
// should move most of this code into PEAR_Packager
return true;
}
+ // }}}
+ // {{{ doMakeRPM()
+
function doMakeRPM($command, $options, $params)
{
if (sizeof($params) != 1) {
return true;
}
+
+ // }}}
}
?>
\ No newline at end of file
class PEAR_Command_Registry extends PEAR_Command_Common
{
- // {{{ command definitions
+ // {{{ properties
var $commands = array(
'list' => array(
}
// }}}
+
// {{{ doList()
function _sortinfo($a, $b)
// }}}
- // {{{ remote-info
+ // {{{ doRemoteInfo()
function doRemoteInfo($command, $options, $params)
{
}
// }}}
- // {{{ list-remote
+ // {{{ doRemoteList()
function doRemoteList($command, $options, $params)
{
}
// }}}
- // {{{ list-all
+ // {{{ doListAll()
function doListAll($command, $options, $params)
{
}
// }}}
- // {{{ search
+ // {{{ doSearch()
function doSearch($command, $options, $params)
{
}
// }}}
- // {{{ download
+ // {{{ doDownload()
function doDownload($command, $options, $params)
{
}
// }}}
- // {{{ list-upgrades
+ // {{{ doListUpgrades()
function doListUpgrades($command, $options, $params)
{