DB_DataObject and Structures_DataGrid integration
| From: | Olivier Guilyardi | Date: | Mon, 09 Aug 2004 16:12:59 +0000 |
| Subject: | DB_DataObject and Structures_DataGrid integration | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-32518@lists.php.net to get a copy of this message | ||
Hi,
I want to bind Structures_DataGrid to DB_DataObject in a more integrated
manner than Structures_DataGrid_Record_DataObject.
My constatation is :
- 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 ?
--
og