Re: Re: HTML_Table: thead, tfoot and tbody

From: Date: Sun, 31 Jul 2005 02:30:42 +0000
Subject: Re: Re: HTML_Table: thead, tfoot and tbody
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39054@lists.php.net to get a copy of this message
On Sat, 2005-07-30 at 23:59 +0200, Mark Wiesemann wrote: > Christian Weiske wrote: > > >> 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). > > Yes, that is a quite neat solution. > > Only: Where to pass the offsets? > > I talked to Christian off-list: my suggestion with the null values was > based upon a missunderstanding. > > So my new suggestion (agreed by Christian) is to use $col as the offset > value if $contents in set{Header/Body/Footer/Cell}Contents() is an > array. Example: > > $table->setCellContents(3, 2, array('A', 'B', 'C')); > ==> row 3, col 2 = 'A' > row 3, col 3 = 'B' > row 3, col 4 = 'C' This sounds nice, plus the other things said before, I'm going out of town for 3-4 days in couple of hours so I can't do anything then please email me the patch + doc changes (well the doc changes can go to the doc list after the patch is added really) when you have it ready :) - Helgi

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