Re: Re: HTML_Table: thead, tfoot and tbody

From: Date: Sat, 30 Jul 2005 21:59:43 +0000
Subject: Re: Re: HTML_Table: thead, tfoot and tbody
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39053@lists.php.net to get a copy of this message
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' Mark

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