[TYPO3-UG Freiburg] [Fwd: Re: [FLOW3-general] Model Getter and Setter functions]

Steffen Müller typo3 at t3node.com
Sat Jan 16 15:55:52 CET 2010


Hi,

wir hatten doch am Montag über die Frage gesprochen, warum in FLOW3 
keine interceptor methoden für setter/getter verwendet werden:

-------- Original-Nachricht --------
Betreff: Re: [FLOW3-general] Model Getter and Setter functions
Datum: Sat, 16 Jan 2010 00:25:17 +0100
Von: Karsten Dambekalns <karsten at typo3.org>
Organisation: TYPO3 Association
Newsgruppen: flow3.general
Referenzen: <mailman.18076.1263587568.615.flow3-general at lists.typo3.org>

Hi.

On 15.01.10 21:30, marc neuhaus wrote:
> Is there a reason i don't see why the Models don't inherit a Base Class wich
> implements the magic __call function to provide default Getter and Setter
> functions?

Yes. Two, mainly.

1. If a framework requires you to inherit from a base class, you cannot
inherit from your own base class anymore. No more freedom.

2. __call() is slow as hell.

3. It is more explicit, enables better documentation, code completion, ...

Probably more.

Regards,
Karsten


More information about the TYPO3-UG-Freiburg mailing list