[TYPO3-50-general] Magic Get too magic?
Joerg Schoppet
joerg at schoppet.de
Fri Feb 23 10:16:01 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Lemke wrote:
> Now, before I remove that magic from TYPO3 - what do you think about
> magic Getters and Setters?
For this kind of cases I would also recommend to delete them, but ...
IMHO, there is one big point, where the magic methods get important:
delegation.
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.
Regards
Joerg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF3rDRq5Me6rRDqPURAql0AJ4svTKrVBoBtfE22Sy55qTj4O200QCgvuRg
nou5aLOgTvo5V0JdKqPJL+8=
=ZMLC
-----END PGP SIGNATURE-----
More information about the TYPO3-project-5_0-general
mailing list