[FLOW3-general] Model Getter and Setter functions

Karsten Dambekalns karsten at typo3.org
Sat Jan 16 00:25:17 CET 2010


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 FLOW3-general mailing list