Re: Re: HTML_Table: thead, tfoot and tbody
| From: | Christian Weiske | Date: | Fri, 29 Jul 2005 19:35:49 +0000 |
| Subject: | Re: Re: HTML_Table: thead, tfoot and tbody | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39042@lists.php.net to get a copy of this message | ||
Hello Mark,
> - add a fourth parameter to setCellContents():
> function setCellContents(int $row, int $col, mixed $contents [[,
> string $type='TD'], boolean $tbody = true]);
> ==> "normal" data belongs to <tbody>, new parameter allow to add data
> to <tfoot>
I wouldn't use a boolean value but a string for parameter types "tbody",
"thead" and "tfoot", with "tbody" as default.
> - content added by setHeaderContents() belongs to <thead>
Because we'd need another function for setFooterContents().
What about following:
A constructor parameter to determine if the old, non-tbody style should
be used or the new one?
If we had that, there the class could determine if it has to set the
data in the tbody array when they are added with setHeaderContents() or
in the thead array. Furthermore, we wouldn't need any extension to
setCellContents.
I'd also like to have two other convenience methods beside
setHeaderCellContents: setBodyCellContents and setFooterCellContents.
Oh yeah, not to forget the convenience methods to set a whole row:
setHeaderRowContents, setBodyRowContents and setFooterRowContents.
That's all :)
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