Re: DB_DataObject and Structures_DataGrid integration
| From: | Andrew Nagy | Date: | Fri, 13 Aug 2004 19:17:53 +0000 |
| Subject: | Re: DB_DataObject and Structures_DataGrid integration | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32651@lists.php.net to get a copy of this message | ||
Jackson Miller wrote:
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.I disagree. How would you do searching if your datasource is an xml document, an ini file or something that does not have a query language to query it? A simple whereAdd is no long simple. Filtering is much more processing and is intended to be handled by the data layer, not the data driver. The data driver goal is to simply get the data into the grid structure so the structure can understand it. You should only pass in the data to the structure that you want it to work with. The filtering should take place prior to the bind process.