RE: [PEAR-DEV] Proposal - HTML_DataGrid - Again
| From: | Andrew S. Nagy | Date: | Mon, 09 Feb 2004 14:17:02 +0000 |
| Subject: | RE: [PEAR-DEV] Proposal - HTML_DataGrid - Again | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25553@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Alan Knowles [mailto:alan@akbkhome.com]
>
> It does look like just having a small switch
> switch (true) :
> case (is_objecT($obj && is_a($obj,'DB_DataObject')):
> ....
> case (is_object($obj && is_a($obj,'DB_ResultSet')):
> ....
> default:
> .....
> }
> would be sufficient.. - if it needs to be more complex - I'm sure it
> would probably not affect the public interface to change it later anyway..
>
> (this is without looking at the code though...)
>
Actually, thats what I have now. :)
However, Markus makes a good argument!