Re: Re: HTML_Table: thead, tfoot and tbody

From: Date: Sat, 30 Jul 2005 08:53:23 +0000
Subject: Re: Re: HTML_Table: thead, tfoot and tbody
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39048@lists.php.net to get a copy of this message
Hi Christian! > 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. Nice idea, easy to use. But the function names should be setHeaderContents() (as it is now), setBodyContents() and setFooterContents(). > Oh yeah, not to forget the convenience methods to set a whole row: > setHeaderRowContents, setBodyRowContents and setFooterRowContents. How about allowing the $row and $col params in set{Header/Body/Footer/Cell}Contents() to be null? E.g.: If $col = null then the content should go in every col of the specified row. Accordingly for the cases $row = null and ($row = null && $col = null). This would reduce the "shitload of extra functions" ((c) by Helgi *g*) to only two new functions (setBodyContents() and setFooterContents()). Mark

« previous php.pear.dev (#39048) next »