Re: DB_DataObject and Structures_DataGrid integration
| From: | Andrew Nagy | Date: | Fri, 13 Aug 2004 14:12:20 +0000 |
| Subject: | Re: DB_DataObject and Structures_DataGrid integration | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32616@lists.php.net to get a copy of this message | ||
Olivier Guilyardi wrote:
By the way, what do you think of my experiments with DG (remember your "urged" me to contribute ;), as I uploaded here : http://www.xung.org/misc/dgdoI like what you have in regards to the bind method, very nice. 2 comments: 1. I would definitely break up the code from the bind method into a private method or use the idea of the source driver so that the bind method only needs to interact with 1 set of functionality. If we start adding different datasources, this method will be very long. 2. I don't like that it auto generates the columns there. The autogeneration takes place in a different spot. The idea of "bind" is to bind the data with the grid. What if i want to bind my dataobject and then define my own columns?
And what about my event-based ideas that you wiped out in your current answer ?I am still thinking about this :) It is exactly the way .net does it which could be good or bad. To me .net is not intuitive for the app programmer; however, i think the design of .net is very good. So my out look is keep the same premise, just make it easier to use. Using the event based model could add a whole new layer of complexity, but it may be very worthwhile. I won't be able to start hacking at the code until next week, then I will have been able to do much more thinking on this. Thanks for the contributions! Andrew