[TYPO3-ect] Registry-Pattern for lib/div?

Elmar Hinz elmar07 at googlemail.com
Tue Aug 14 10:25:16 CEST 2007


>> 2.) We have the tree of plugins. How does the registry know, which
>> controller is needed for the current plugin? Example: The program flow is
>> in the result browser and the result browsers controller is requested.
> As mentioned above, I need more code insight and practial experience to
> answer this question accurate, my framework only uses one controller at
> a time. But here a suggestion (don't know if it is possible): If the
> configuration-object is globally available, and if I can see through the
> actual configuration, at which place I am, the configuration-objects can
> be traversed to retrieve the right controller. Then, we only need to
> define a rule, with which unique name each controller will register.
> 

Hi,

one idea that just came into my mind is a stack. As the program processes
the tree stacks would be the classical form to manage the objects. The
object on top of the stack is the current object. 

That would require 3 different steps. 

I am thinking of a static class tx_lib for static functions that are
directly related to lib in contrast to tx_div.

tx_lib::controller();
tx_lib::pushController();
tx_lib::popController();

tx_lib::parameters();
...

tx_lib::configurations();
...

So far the first ideas.

Regards

Elmar










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