Re: DB_DataObject and Structures_DataGrid integration

From: Date: Mon, 09 Aug 2004 18:02:41 +0000
Subject: Re: DB_DataObject and Structures_DataGrid integration
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32522@lists.php.net to get a copy of this message
On Mon, 09 Aug 2004 18:12:59 +0200, Olivier Guilyardi <ml@xung.org> wrote: > Hi, > > I want to bind Structures_DataGrid to DB_DataObject in a more integrated > manner than Structures_DataGrid_Record_DataObject. > > My constatation is : ...I don't understand the word you used here. > - DataObject can sort and limit the data > - Datagrid knows how the user wants her data sorted and limited > > Given that, I believe DataGrid and DataObject can interact in a bilateral > way : > - DataObject providing data to DataGrid (which DataGrid_Record_DataObject > implements for a single record) > - DataGrid telling DataObject what data to retrieve according to the user > wish. > > While implementing this for my own needs, I may turn it into reusable code. > > How do you think I should go : > - improving DataGrid_Record_DataObject ? > - creating DB_DataObject_DataGrid (my current favourite) ? > - creating a driver for DB_DataObject_FormBuilder ("FormBuilder_DataGrid") ? > - something else ? > Given that I know nothing about DataGrid, I can't really answer your question, but I doubt a display driver for FormBuilder would do what you want. FormBuilder is about showing a form for a *single* record. Of course, you could us eit to format your data and then output it...as I do in the frontend I wrote. Sounds like you should be adding a driver to DataGrid to me. Perhaps you could add a FormBuilder renderer as well so that you can use FormBuilder's link displaying capabilities. > -- > og > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.pear.dev (#32522) next »