[TYPO3-ect] TODO

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Fri Jan 26 17:28:55 CET 2007


Am Fri, 26 Jan 2007 16:55:36 +0100 schrieb Nikolas Hagelstein:

> Hi daniel,
>>all right, so could you give an example how other frameworks use hooks
>>for addons? I think this is very important for us, because it's good
>>when extensions can be extended easily.
> 
> Have a look at the common page i added a basic idea.
> bye,
> Nikolas

Hi,

the current implementation of lib/div works like this:

* All processings are defined within one action function.
* You can overwrite each action function by registering additional
controllers for a controller. Pattern of an Extendable Controller, PEC
(TM).

The hooks of your suggestion have a fix position. PEC gives the
freedom to redifine the whole processing chain, not only to hook in
filters, but also to exchange whole components of the chain. 

The disadvantage of PEC is that only one of the extending actions can
"win" the job. That's the point where hooks come in again to compose
functionality contributed by different addons. We also need to
reflect subcontrollers, chains of actions and services to enlarge
flexibility.


Regards

Elmar

























More information about the TYPO3-team-extension-coordination mailing list