[TYPO3-ect] Registry-Pattern for lib/div?
Christian Welzel
gawain at camlann.de
Tue Aug 14 11:13:46 CEST 2007
Joerg Schoppet wrote:
> Then you have a x parameter-objects and x configuration-objects (for
> each plugin). Or do I understand something wrong?
The execution of each plugin in a page is always startet by a call to
main() of the controller.
I think it would be no problem to change the _createConfigurations()
method to something like this:
function _createConfigurations($configurationArray) {
$object = tx_lib_configurations::getInstance();
$object->controller($this);
$object->setTypoScriptConfiguration($configurationArray);
if(is_object($this->cObj))
$object->setFlexFormConfiguration($this->cObj->data['pi_flexform']);
}
So someone could get the object simply by tx_lib_configurations::getInstance();
Btw why does the configuration object does to know its controller?
--
MfG, Christian Welzel
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
More information about the TYPO3-team-extension-coordination
mailing list