Re: Re: HTML_Table: thead, tfoot and tbody

From: Date: Wed, 03 Aug 2005 14:55:37 +0000
Subject: Re: Re: HTML_Table: thead, tfoot and tbody
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39167@lists.php.net to get a copy of this message
Hi Klaus and the others, > I'm +1 for arrays, too. So the consensus is to use three arrays like $_tHead, $_tBody and $_tFoot if the new constructor param tells us to use the three groups, and to use $_structure like before if the new constructor param isn't set? Maybe I have an error in reasoning (dict.leo.org tells me that this is the translation for german "Denkfehler") but doesn't this require to change many functions? E.g: function setRowType($row, $type) has this line of code: $this->_structure[$row][$counter]["type"] = $type; But here $row (maybe = 1) is non-ambiguous because it could be row 1 in <thead>, <tbody> or <tfoot>. And it also must take into accout that it has to write to $_tHead, $_tBody or $_tFoot if the new constructor param is true. Tell me if I'm on the woodway! Mark

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