Re: HTML_Table and altrowattributes
| From: | Ian P. Christian | Date: | Wed, 19 May 2004 22:30:28 +0000 |
| Subject: | Re: HTML_Table and altrowattributes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12641@lists.php.net to get a copy of this message | ||
Quoting Bertrand Mansion <bmansion@mamasam.com>:
Why can't you call altRowAttributes when you are finished filling the table ?Just a little idea I had, I know nothing really about HTLM_Table (used it for the first time today actually) why not do something like this class myHTML_Table extends HTML_Table { var $setThing = false; var $ribbitParams; function setAlternateStuff($params) {
$this->setThing = true;
$this->ribbitParams = $params;
}
function toHTML()
{
if ($setThing)
{
// call alternate thingy, using $this->ribbitParams as paramaters
}
parent::toHTML();
}
}
sorry if this is no help, I'm only half paying attention :)
Ian