* disable table borders in output to save width

This commit is contained in:
Stig Bakken 2003-04-03 23:12:40 +00:00
parent 360d1da529
commit 7d4142b896

View File

@ -254,7 +254,7 @@ class PEAR_Frontend_CLI extends PEAR
function endTable()
{
trigger_error("PEAR_Frontend_CLI::tableRow deprecated", E_USER_ERROR);
trigger_error("PEAR_Frontend_CLI::endTable deprecated", E_USER_ERROR);
}
function _endTable()
@ -275,6 +275,7 @@ class PEAR_Frontend_CLI extends PEAR
}
}
}
$border = false;
if (empty($border)) {
$cellstart = '';
$cellend = ' ';
@ -358,7 +359,7 @@ class PEAR_Frontend_CLI extends PEAR
if (isset($data['release_warnings'])) {
$this->_displayLine('');
$this->_startTable(array(
'border' => true,
'border' => false,
'caption' => 'Release Warnings'
));
$this->_tableRow(array($data['release_warnings']), null, array(1 => array('wrap' => 55)));
@ -394,7 +395,7 @@ class PEAR_Frontend_CLI extends PEAR
$this->_endTable();
break;
case 'config-show':
$data['border'] = true;
$data['border'] = false;
$opts = array(0 => array('wrap' => 30),
1 => array('wrap' => 20),
2 => array('wrap' => 35));
@ -417,7 +418,7 @@ class PEAR_Frontend_CLI extends PEAR
case 'remote-info':
$data = array(
'caption' => 'Package details:',
'border' => true,
'border' => false,
'data' => array(
array("Latest", $data['stable']),
array("Installed", $data['installed']),