Re: HTML_Table: thead, tfoot and tbody
| From: | Christian Weiske | Date: | Fri, 05 Aug 2005 12:37:44 +0000 |
| Subject: | Re: HTML_Table: thead, tfoot and tbody | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39248@lists.php.net to get a copy of this message | ||
Sorry that I reply to the top message, but the thread view is unusable
because of the depth of the thread.
What about a totally new concept:
$table = new HTML_Table();
$body = $table->getBody();
$body->setCellContents(0,0, 'bla');
$foot = $table->getFooter();
$foot->setCellContents(0,0, 'blubb');
$table->toHTML();
returns:
<table>
<tfoot>
<tr>
<td>blubb</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>bla</tr>
</tbody>
</table>
With that, we wouldn't need three different functions for each of head,
body and foot.
Regards/MfG,
Christian Weiske
--
XMMS is playing now:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc