Re: Structures_DataGrid
| From: | Markus Ernst | Date: | Wed, 28 Jun 2006 20:07:39 +0000 |
| Subject: | Re: Structures_DataGrid | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24504@lists.php.net to get a copy of this message | ||
Olivier Guilyardi schrieb:
Actually, there's a much better way, just use the DataSource directly. For example with XML : $datasource = new Structures_DataGrid_DataSource_XML(); $datasource->bind($xml); $data = $datasource->fetch(); DataGrid's DataSource layer provide a common interface for retrieving tabular data from all sort of formats/backends/etc... And you can use DataSource::sort() and DataSource::count() with all of them.That's good! Anyway for compatibility with the automatic datatype detection functionality a DataGrid::getDataSource() method (according to getRenderer()) seems necessary to me; I posted a feature request for this. -- Markus