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

Joerg Schoppet joerg at schoppet.de
Thu Aug 16 08:18:41 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Elmar Hinz wrote:
> Currently we have instances:
> 
> $this->controller->configurations->get($key);
> 
> Static register style with stack:
> 
> tx_lib_register::configurations()->get($key);
> 
> 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);
>
IMHO, it is not that difference if someone has to write
tx_lib::request()->get($key);  or
tx_lib_request::get($key);

Ok, the second one is a little bit shorter.

Whatever of these two styles will be choosen, it is OK from myself.

+- 0 for each possibility

> We could use a common syntax for $key to address subarrays and properties.
> 
> $key = 'table.field.length';
> 
> (Mind PHP5 has xpath build in!? Right?)
>
Yes, e.g. the SimpleXML-extension has it. But what will you achieve with
this?

Joerg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGw+xBq5Me6rRDqPURAodXAJkB6bZ5YSHjotoqyYh6pTlgVLE4mACZAWlc
bce2a1pkZcUpRDrMktHVJcM=
=PwDG
-----END PGP SIGNATURE-----


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