[ANNOUNCEMENT] HTML_Table-1.6.0 (stable) Released.
| From: | PEAR Announce | Date: | Fri, 21 Oct 2005 19:37:57 +0000 |
| Subject: | [ANNOUNCEMENT] HTML_Table-1.6.0 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21584@lists.php.net to get a copy of this message | ||
The new PEAR package HTML_Table-1.6.0 (stable) has been released at http://pear.php.net/.
Release notes
-------------
- Mark Wieseman is now a active developer
- td/th aren't longer case sensitive in addRow() and relative functions
- Added the possibility to specify on which row the cols should be counted. (Bertrand)
- #786, if the value was a zero, the cell content was converted to the autofill value. (Bertrand)
- #1734, _adjustEnd added a extra empty column if there was only one column being processed
- setHeaderContents can now accept attributes, but it's optional. request #2030
- Request #4944: setCellContents() now accepts an array as $contents ($col will be used as the start
column then).
- Request #4988: addRow() accepts now array keys as column numbers.
- Added support for thead, tfoot and tbody on the courtesy of Mark Wiesemann
<wiesemann@php.net>
Usage:
- current behaviour is still available:
$table = new HTML_Table();
$table->setCellContents(...);
echo $table->toHtml();
- new alternative with same result:
$table = new HTML_Table();
$body =& $table->getBody();
$body->setCellContents(...);
echo $table->toHtml();
- using the new grouping:
$table = new HTML_Table(null, null, true);
$head =& $table->getHeader();
$foot =& $table->getFooter();
$body =& $table->getBody();
$head->setCellContents(...);
$body->setCellContents(...);
echo $table->toHtml(); // <tfoot> will not be rendered
Package Info
-------------
The PEAR::HTML_Table package provides methods for easy and efficient design of HTML tables.
- Lots of customization options.
- Tables can be modified at any time.
- The logic is the same as standard HTML editors.
- Handles col and rowspans.
- PHP code is shorter, easier to read and to maintain.
- Tables options can be reused.
For auto filling of data and such then check out http://pear.php.net/package/HTML_Table_Matrix
Related Links
-------------
Package home: http://pear.php.net/package/HTML_Table
Changelog: http://pear.php.net/package/HTML_Table/download/1.6.0
Download: http://pear.php.net/get/HTML_Table-1.6.0.tgz
Authors
-------------
Bertrand Mansion <golgote@mamasam.com> (lead)
Klaus Guenther <klaus@capitalfocus.org> (lead)
Helgi Þormar <dufuz@php.net> (lead)
Mark Wiesemann <wiesemann@php.net> (developer)