Re: Custom DataSource drivers for DataGrid
| From: | olivier guilyardi | Date: | Fri, 07 Jan 2005 19:32:12 +0000 |
| Subject: | Re: Custom DataSource drivers for DataGrid | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16793@lists.php.net to get a copy of this message | ||
Hi Daniel,
daniel@electroteque.org wrote:
I have hit a wall on creating a custom DataSource driver for DataGrid and trying to get DataGrid touse it, i know where the drivers are but i need to work out how to tell DataGrid on to use thatparticular driver. Any ideas ?1 - extend the Structures_DataGrid_Datasource class 2 - implement bind(), and optionally : count(), sort() and fetch() 3 - load your driver with Structures_DataGrid::bindDataSource() Hope this helps -- og