Re: Proposal - HTML_DataGrid - Again

From: Date: Wed, 04 Feb 2004 15:19:46 +0000
Subject: Re: Proposal - HTML_DataGrid - Again
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25494@lists.php.net to get a copy of this message
Andrew Nagy schrieb:
The data is handled by a record object as well as a column object. I have added a bind method to make adding a recordset quick and dirty; however you still need to define your columns, I would like to change fix this soon.
Hi Andrew, you're getting there :-) What I'd do is not have a single RecordSet class but one special recordset class for every type of datasource - it makes adding new datasources way easier. Those classes must all provide the same interface; essentially, they must implement an interator and means to retrieve the names/types of the columns inside the record. Aside from arrays and DB_DataObjects I'd also allow PEAR::DB and MDB recordsets, which are quite common datasources as well, I'd say :-) Regards, Markus

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