ZF-1549: Add 'init' hook to Zend_Db_Table, Rowset and Row
Description
It would be great to have an 'init' method to use for overridden objects so that the constructor doesn't need to be altered.
It would be great to have an 'init' method to use for overridden objects so that the constructor doesn't need to be altered.
Comments
Posted by Bill Karwin (bkarwin) on 2007-06-12T17:58:05.000+0000
Assign to me.
Categorize as Zend_Db_Table.
Posted by Craig Slusher (sleek) on 2007-07-26T18:45:51.000+0000
This would be a very simple addition to each of the classes, but what is an example use case for it? I can't think of any.
Posted by Bill Karwin (bkarwin) on 2007-07-26T19:47:31.000+0000
Having a clear use case is important, but as a side comment I want to point out that although one could write a solution as follows with no "hooks":
However, "Call Super" is considered an anti-pattern: http://en.wikipedia.org/wiki/Call_super
Posted by Darby Felton (darby) on 2007-10-31T11:58:34.000+0000
Assigning to [~peptolab] to be resolved with the approved Zend_Db_Table enhancements proposal.
Posted by Simon Mundy (peptolab) on 2008-01-18T21:28:09.000+0000
Resolved in r7508