summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-03-22 11:59:52 +0000
committerStig Bakken <ssb@php.net>2002-03-22 11:59:52 +0000
commita57a5d7edadc7bdc6077b3e5865dd596a74d276e (patch)
tree0b0147d782e3fcadf29e4e5f5a3b03699352b684
parentfd62c434e510a3e0c03b034fa9cc34fd9997207b (diff)
downloadphp-git-a57a5d7edadc7bdc6077b3e5865dd596a74d276e.tar.gz
* now using PEAR_Frontend tables
-rw-r--r--pear/PEAR/Command/Registry.php17
1 files changed, 14 insertions, 3 deletions
diff --git a/pear/PEAR/Command/Registry.php b/pear/PEAR/Command/Registry.php
index f5444fcb86..8fe08b215c 100644
--- a/pear/PEAR/Command/Registry.php
+++ b/pear/PEAR/Command/Registry.php
@@ -13,9 +13,9 @@ class PEAR_Command_Registry extends PEAR_Command_Common
*
* @access public
*/
- function PEAR_Command_Registry(&$ui)
+ function PEAR_Command_Registry(&$ui, &$config)
{
- parent::PEAR_Command_Common($ui);
+ parent::PEAR_Command_Common($ui, $config);
}
// }}}
@@ -58,19 +58,30 @@ class PEAR_Command_Registry extends PEAR_Command_Common
$reg = new PEAR_Registry($cf->get('php_dir'));
$installed = $reg->packageInfo();
$i = $j = 0;
- heading("Installed packages:");
+ $this->ui->startTable(
+ array('caption' => 'Installed packages:',
+ 'border' => true));
foreach ($installed as $package) {
if ($i++ % 20 == 0) {
+ $this->ui->tableRow(array('Package', 'Version', 'State'),
+ array('bold' => true));
+/*
if ($j++ > 0) {
print "\n";
}
printf("%-20s %-10s %s\n",
"Package", "Version", "State");
print str_repeat("-", 75)."\n";
+*/
}
+ $this->ui->tableRow(array($package['package'], $package['version'], $pacage['release_state']));
+
+/*
printf("%-20s %-10s %s\n", $package['package'],
$package['version'], $package['release_state']);
+*/
}
+ $this->ui->endTable();
break;
}
default: {