Re: Re: HTML_Table: thead, tfoot and tbody

From: Date: Wed, 03 Aug 2005 09:37:23 +0000
Subject: Re: Re: HTML_Table: thead, tfoot and tbody
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39159@lists.php.net to get a copy of this message
Hi Christian, >> Hmm, when you interpret those commands this way, then this is a BC >> break. With the current API in all function mentioned above the first >> parameter is the row number, relative to the whole table. > No. Because we have an extra parameter for the constructor which > switches between the new and the old behavior. Nice catch. ;-) Okay, this allows us to use seperate numbering for the three groups. Then there is also no need to extend setRowType() (I asked for that some posts ago) to allow switching between the groups. But this would mean that there needs a bigger change in the internal API. Currently (almost) table all data is stored in $_structure. Now we need either three arrays or an extension of $_structure that allows row numbers that can occur three times. The first one seems to the better option in my opinion. But that will need changes in almost all functions as they all use $_structure. Using the current $_structure with not the real (because moved) row numbers and an additional array storing the row numbers for the three groups makes it also complicated. Mark

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