2008年11月27日星期四

[fw-db] Subclassing Zend_Db_Select

Hi,

there are many Zend Framework components that can be subclassed and
customized, e.g. Zend_Form. It is possible to subclass a Zend_Form and to
change it, the way someone needs it. The most common way is through the use
of an init() method.

That brings me to my question. I would like to see such a possibility in
Zend_Db_Select as well. Is this already implemented? By using Zend_Db_Select
this way, it would be possible to create a class for every SELECT-statement.
This would create some kind of prepared statement in a PHP class. Another
pro would be the possibility to test single SELECT queries with UnitTests.

Is such a behaviour already implemented?

Other components where I am missing this behaviour are:

* Zend_Config
* Zend_Session_Namespace

Every comment is appreiciated..
Thanks

Richard

--
View this message in context: http://www.nabble.com/Subclassing-Zend_Db_Select-tp20725333p20725333.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: