cvs: pear /HTML_Table Table.php package2.xml /HTML_Table/Table Storage.php

From: Date: Fri, 23 Jun 2006 16:39:38 +0000
Subject: cvs: pear /HTML_Table Table.php package2.xml /HTML_Table/Table Storage.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40879@lists.php.net to get a copy of this message
wiesemann Fri Jun 23 16:39:38 2006 UTC Modified files: /pear/HTML_Table Table.php package2.xml /pear/HTML_Table/Table Storage.php Log: - Bug #7971: setTab() (from HTML_Common) had no effect anymore (thanks to Kristoffer Paro, kristoffer dot paro at gmail dot com) - prepare for release http://cvs.php.net/viewvc.cgi/pear/HTML_Table/Table.php?r1=1.30&r2=1.31&diff_format=u Index: pear/HTML_Table/Table.php diff -u pear/HTML_Table/Table.php:1.30 pear/HTML_Table/Table.php:1.31 --- pear/HTML_Table/Table.php:1.30 Tue Apr 25 09:34:42 2006 +++ pear/HTML_Table/Table.php Fri Jun 23 16:39:38 2006 @@ -28,7 +28,7 @@ * @author Bertrand Mansion <bmansion@mamasam.com> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Table.php,v 1.30 2006/04/25 09:34:42 wiesemann Exp $ + * @version CVS: $Id: Table.php,v 1.31 2006/06/23 16:39:38 wiesemann Exp $ * @link http://pear.php.net/package/HTML_Table */ @@ -625,7 +625,7 @@ $this->_thead->setColCount($maxColCount); if ($this->_thead->getRowCount() > 0) { $strHtml .= $tabs . $tab . '<thead>' . $lnEnd; - $strHtml .= $this->_thead->toHtml(); + $strHtml .= $this->_thead->toHtml($tabs, $tab); $strHtml .= $tabs . $tab . '</thead>' . $lnEnd; } } @@ -633,7 +633,7 @@ $this->_tfoot->setColCount($maxColCount); if ($this->_tfoot->getRowCount() > 0) { $strHtml .= $tabs . $tab . '<tfoot>' . $lnEnd; - $strHtml .= $this->_tfoot->toHtml(); + $strHtml .= $this->_tfoot->toHtml($tabs, $tab); $strHtml .= $tabs . $tab . '</tfoot>' . $lnEnd; } } @@ -641,12 +641,12 @@ $this->_tbody->setColCount($maxColCount); if ($this->_tbody->getRowCount() > 0) { $strHtml .= $tabs . $tab . '<tbody>' . $lnEnd; - $strHtml .= $this->_tbody->toHtml(); + $strHtml .= $this->_tbody->toHtml($tabs, $tab); $strHtml .= $tabs . $tab . '</tbody>' . $lnEnd; } } } else { - $strHtml .= $this->_tbody->toHtml(); + $strHtml .= $this->_tbody->toHtml($tabs, $tab); } $strHtml .= $tabs . '</table>' . $lnEnd; return $strHtml; http://cvs.php.net/viewvc.cgi/pear/HTML_Table/package2.xml?r1=1.4&r2=1.5&diff_format=u Index: pear/HTML_Table/package2.xml diff -u pear/HTML_Table/package2.xml:1.4 pear/HTML_Table/package2.xml:1.5 --- pear/HTML_Table/package2.xml:1.4 Wed Apr 26 15:28:27 2006 +++ pear/HTML_Table/package2.xml Fri Jun 23 16:39:38 2006 @@ -41,20 +41,19 @@ <email>wiesemann@php.net</email> <active>yes</active> </lead> - <date>2006-04-26</date> - <time>10:21:00</time> + <date>2006-06-23</date> + <time>18:30:00</time> <version> - <release>1.7.0</release> - <api>1.7.0</api> + <release>1.7.1</release> + <api>1.7.1</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <license>PHP_License</license> - <notes>- Request #6167 and request #6768: added the ability to use the -'colgroup' feature (usable via setColGroup() method) -(thanks to Laurent Laville for the patch) + <notes>- Bug #7971: setTab() (from HTML_Common) had no effect anymore +(thanks to Kristoffer Paro, kristoffer dot paro at gmail dot com) </notes> <contents> <dir name="/"> http://cvs.php.net/viewvc.cgi/pear/HTML_Table/Table/Storage.php?r1=1.6&r2=1.7&diff_format=u Index: pear/HTML_Table/Table/Storage.php diff -u pear/HTML_Table/Table/Storage.php:1.6 pear/HTML_Table/Table/Storage.php:1.7 --- pear/HTML_Table/Table/Storage.php:1.6 Tue Oct 25 20:29:43 2005 +++ pear/HTML_Table/Table/Storage.php Fri Jun 23 16:39:38 2006 @@ -22,7 +22,7 @@ * @author Bertrand Mansion <bmansion@mamasam.com> * @copyright 2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Storage.php,v 1.6 2005/10/25 20:29:43 wiesemann Exp $ + * @version CVS: $Id: Storage.php,v 1.7 2006/06/23 16:39:38 wiesemann Exp $ * @link http://pear.php.net/package/HTML_Table */ @@ -630,11 +630,15 @@ * @access public * @return string */ - function toHtml() + function toHtml($tabs = null, $tab = null) { $strHtml = ''; - $tabs = $this->_getTabs(); - $tab = $this->_getTab(); + if (is_null($tabs)) { + $tabs = $this->_getTabs(); + } + if (is_null($tab)) { + $tab = $this->_getTab(); + } $lnEnd = $this->_getLineEnd(); if ($this->_useTGroups) { $extraTab = $tab;

« previous php.pear.cvs (#40879) next »