[TYPO3-ect] Registry-Pattern for lib/div?
Elmar Hinz
elmar07 at googlemail.com
Thu Aug 16 02:10:06 CEST 2007
Christian Welzel wrote:
>
> I believe introducing a new concept like a registry doesn't make lib/div
> easier to the average extension developer.
>
How about something in the middle?
Currently we have instances:
$this->controller->configurations->get($key);
Static register style with stack:
tx_lib_register::configurations()->get($key);
How about a static class configurations with a build in stack?
tx_lib_configurations::get($key);
We could take:
tx_lib_request::get($key); // Or parameters
tx_lib_setup::get($key); // Or configurations
tx_lib_tca::get($key);
We could use a common syntax for $key to address subarrays and properties.
$key = 'table.field.length';
(Mind PHP5 has xpath build in!? Right?)
I once took the name configurations, because I didn't knew which types of
configurations would go into. Now its only TS and FF. So the shorter name
setup wouldn't by completly wrong.
So far my freshest ideas.
More information about the TYPO3-team-extension-coordination
mailing list