You just found the major disadvantage between interfaces and MI. The solutionS to that is are very complex....and require often more typing then one would like to.
As I never believed there is any better solution for MI. Now they are even going to remove aggregation.
I think there need to be more discussions between developers and users on adding or removing an important feature.
Wei He
Wei He wrote:
Now they are even going to remove aggregation.
It is gone.
I think there need to be more discussions between developers and users on adding or removing an important feature.
Users wanted interfaces. PHP 4 could not accomodate that wish. PHP 4 introduced aggregation as a (ugly) workaround. PHP 5 has a new object model and can accomodate the original user's wish. Hence no need and no place for aggregation in PHP 5.
Also, I think you still did not get the difference between modelling your code (interfaces) and code reuse (inheritance). Either way, this discussion is off-topic here.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/