1 May 2005 10:21
Re: Structures_Datagrid: new DataSource class
Arnaud Limbourg <arnaud <at> limbourg.com>
2005-05-01 08:21:07 GMT
2005-05-01 08:21:07 GMT
Hi, I think the best way to go is to post a feature request on pear bugs. There is a link on the package homepage. This way it doesn't ge lost. Arnaud. Mark Wiesemann wrote: > Hi, > > I'd like to propose a new DataSource class which can handle DB_Table > objects. > > Here is the code: http://www.markwiesemann.de/php/DB_Table.phps > > The code bases on the DB_Result DataSource class. As DB_Table can handle > sorting in the select* functions the sort function of my class is not > needed. At the moment a PEAR_Error object is returned if one calls this > function. I don't know enough of the internals of Datagrid - maybe the > function is not needed in every DataSource driver class and can be > deleted. > > Usage of the new driver: > > (1) Assuming one has a DB_Table object called $c: > > require_once 'Structures/DataGrid/DataSource.php'; > $dg =& new Structures_DataGrid();(Continue reading)
. It
also includes tests (in phpt), samples and doc (in docbook).
* Structures_DataGrid's are better than my crap printFiles, so I removed
it.
* Renamed the keys of the array. I was using the same keys that are
documented on on the API (of Ar File Format). But I'm agree in using other
keys.
* _isError is deprecated, PEAR::isError will be used.
* Ar files can be created, this wasn't possible (an Ar file was
required).
* Fixes minor bugs.
Proposal information:
RSS Feed