Re: Proposal - HTMLDataGrid
| From: | Bertrand Mansion | Date: | Sun, 11 Jan 2004 16:55:44 +0000 |
| Subject: | Re: Proposal - HTMLDataGrid | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24982@lists.php.net to get a copy of this message | ||
<asnagy@syr.edu> wrote :
> Here is the source: http://webitecture.org/HTMLDataGrid/
This is IMO a bit too basic for a Datagrid class.
A datagrid class needs a datasource. It should also use delegation to get
the row values and to update the rows from a delegate. A datasource could be
any other object providing the values to the datagrid on demand by
responding to predefined methods (for example, getValue($rowIndex,
$colIndex)). The datagrid class should only take care of display and
customization (number of rows to be displayed, colors, size...).
And I don't really like embedded HTML, you could have used HTML_Table for
that.
So I am -1 on that one as it is now.
Bertrand Mansion
Mamasam