Re: HTML_Table and altrowattributes
| From: | Bertrand Mansion | Date: | Thu, 20 May 2004 09:24:26 +0000 |
| Subject: | Re: HTML_Table and altrowattributes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12645@lists.php.net to get a copy of this message | ||
Wes Rood wrote:
> My simple solution will be to create a wrapper object around the
> html_table, exposing the methods of html_table I desire (namely addrow),
> and providing a tohtml method that will just call altrowattributes
> before calling toHtml on the "wrapped" html_table. I just wanted to
> bring up the idea of changing html_table - but I realize now after
> thinking it over more that it would probably be a big design change.
Yes, and as Klaus said, it would also slow things down a little more.
You can indeed use a wrapper, that would allow you to continue to use Html_Table
even if it is updated later on.
Bertrand Mansion
Mamasam