[TYPO3-core] RFC #14171: Bug: XCLASS in class.t3lib_matchcondition_abstract.php is missing

Oliver Klee typo3-german-02 at oliverklee.de
Mon Apr 26 20:36:30 CEST 2010


Hi,

Franz Holzinger schrieb:
> The class t3lib/matchcondition/class.t3lib_matchcondition_abstract.php
> must be changed in a way, that it gets a new member variable class
> $funcObj. This must be an object of a new separate class
> t3lib_matchCondition_new_class. No inheritance must be used here.
> Initalization would be in
> public function __construct().
> 
>  Then all the methods of t3lib_matchCondition_abstract which contain
> code must be moved into the new class t3lib_matchCondition_new_class.
> Then the XCLASS can be inserted within t3lib_matchCondition_new_class .
> 
> The usage of class inheritance is a bad design. It is much better to use
> small member objects instead of it.

I won't comment on these architectural proposals yet, but will pose a
question instead:

Maybe you can share what particular problem you'd like to solve with
this? Maybe we can find a solution that is a lot simpler and cleaner.


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-team-core mailing list