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

Request #1757 [Patch] Add Horizontal Seperators Support
Submitted: 2004-06-30 20:19 UTC
From: davey Assigned: richard
Status: Closed Package: Console_Table
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-06-30 20:19 UTC] davey
Description: ------------ I have created a small patch which will add the ability to call: $table->addSeperator(); To add a horizontal seperator at any point in a table. It simply adds CONSOLE_TABLE_HORIZONTAL_RULE as the data in the _data array. When this is encountered the internal _getSeparator() method is called to create the seperator itself and its added to the result array. The patch can be found at http://synapticmedia.net/~davey/PEAR/patches/Console_Table.txt - Davey Reproduce code: --------------- <?php require_once 'Console/Table.php'; $table = new Console_Table(); $table->setHeaders(array('foo','bar','baz')); $table->addRow(array('bar','baz','qux')); $table->addRow(array('bar','baz','qux')); $table->addSeperator(); $table->addRow(array('bar','baz','qux')); $table->addRow(array('bar','baz','qux')); $table->addRow(array('bar','baz','qux')); $table->addRow(array('bar','baz','qux')); $table->addSeperator(); $table->addRow(array('bar','baz','qux')); echo $table->getTable(); ?> Actual result: -------------- +-----+-----+-----+ | foo | bar | baz | +-----+-----+-----+ | bar | baz | qux | | bar | baz | qux | +-----+-----+-----+ | bar | baz | qux | | bar | baz | qux | | bar | baz | qux | | bar | baz | qux | +-----+-----+-----+ | bar | baz | qux | +-----+-----+-----+

Comments

 [2004-07-11 21:59 UTC] gurugeek
Dear Maintainer, Your package console_table has currently 1 open bug. We urge you to take the necessary steps to solve the reported issues at your soonest convenience. If the bug issue hasn’t been addressed yet you are kindly asked to take the necessary steps to ensure a prompt resolution of the problem. If you already addressed the reported problem feel free to change the bug status as soon as possible. Regards David Costa PEAR Quality Assurance pear-qa@lists.php.net
 [2004-12-21 23:13 UTC] richard
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.