Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.4

Request #16213 add alias to list-channels output
Submitted: 2009-05-10 22:04 UTC Modified: 2009-07-29 07:27 UTC
From: farell Assigned: dufuz
Status: Closed Package: PEAR (version 1.8.1)
PHP Version: 5.2.9 OS:
Roadmaps: 1.9.0    
Subscription  



Patch Alias Revisions
Revision 2009-05-10 22:05 UTC
Developer farell
 
Download patch

@@ -184,13 +184,14 @@
         $i = $j = 0;
         $data = array(
             'caption' => 'Registered Channels:',
             'border' => true,
-            'headline' => array('Channel', 'Summary')
+            'headline' => array('Channel', 'Alias', 'Summary')
             );
         foreach ($registered as $channel) {
             $data['data'][] = array($channel->getName(),
-                                      $channel->getSummary());
+                                    $channel->getAlias(),
+                                    $channel->getSummary());
         }
 
         if (count($registered) === 0) {
             $data = '(no registered channels)';