nerVo schrieb:
Yes, just an interface is perhaps better than a class.
But how do you "connect" your implemented object to data sources ? You still need some kind of adapters and an abstraction layer, no ?

I keep in mind the datagrid example, which - i think - might just take an object as a data-source.
This object may be an implementation through a source adapter.
[...]
As i'm working on a ZF implementation of PEAR quickform and datagrid, i may be interested in developping such components for community.

An adaptor is only needed it the interface is not supported directly by a class that consumes datasources. For PEAR's DataGrid component, you'd need an adaptor, that's true.

However, if a Zend_Data Interface can be agreed upon, it would make a lot of sense if all data-consuming and -retrieving ZF components would make use of that interface, so adaptors would not be neccessary within the ZF. Otherwise, we'd add unneccessary overhead.

CU
 Markus

Reply via email to