*
* @access public
*/
- function PEAR_Command_Config($ui)
+ function PEAR_Command_Config(&$ui, &$config)
{
- parent::PEAR_Command_Common($ui);
+ parent::PEAR_Command_Common($ui, $config);
}
// }}}
// }}}
// {{{ run()
- function run($command, $options, $params)
+ function run($command, $params)
{
- $cf = $this->config;
+ $cf =& $this->config;
$failmsg = '';
switch ($command) {
case 'config-show': {
*
* @access public
*/
- function PEAR_Command_Login($ui)
+ function PEAR_Command_Login(&$ui, &$config)
{
parent::PEAR_Command_Common($ui);
}
*
* @access public
*/
- function run($command, $options, $params)
+ function run($command, $params)
{
$cf = $this->config;
$failmsg = '';
}
$this->ui->displayLine("Logging in to $server.");
$username = trim($this->ui->userDialog('Username', 'text', $username));
-
+
$cf->set('username', $username);
$password = trim($this->ui->userDialog('Password', 'password'));
$cf->set('password', $password);