[TYPO3-50-general] Magic Get too magic?

Robert Lemke robert at typo3.org
Fri Feb 23 10:24:39 CET 2007

Hi Jörg,

Am 23.02.2007 um 10:16 schrieb Joerg Schoppet:

> I'm actually working on a replacement of XCLASSES in TYPO3 < 5,  
> where I
> use the principle of delegation and there primary the magic-method
> "__call" is a must.
> So, if you don't plan to use this design-pattern definitly in the
> future, you can add the ban of magic-methods in the coding-guide.

I don't think we should ban the magic methods in general, but as a  
guideline I'd say we better write a lot of get* set* methods if  
neccessary than applying too much magic.


More information about the TYPO3-project-5_0-general mailing list