Re: DB_DataObject and Structures_DataGrid integration

From: Date: Fri, 13 Aug 2004 18:46:00 +0000
Subject: Re: DB_DataObject and Structures_DataGrid integration
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32648@lists.php.net to get a copy of this message
On Friday 13 August 2004 01:34 pm, Andrew Nagy wrote: > Jackson Miller wrote: > > I would also like to see something to facilitate searching. Most > > datagrids that I create also need a search ability. > > I think searching is out of the scope. The functionality in this driver > is mainly to load the data into the datagrid. Massaging the data should > take place outside of the grid. It is just another kind of limitation that people want to place on the data they are viewing in the grid. It is really like a very limited "Auto Filter" field in spreadsheet programs. While I agree the search form is outside the scope of datagird, I think once you tie to a datasource you HAVE to include addWhere (much more so than limit and orderBy), and you might as well implement a simple search. It is a small method that handles adds a lot of functionality. -Jackson

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