[TYPO3-50-general] OrthoScript
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Sat May 12 16:32:14 CEST 2007
Elmar Hinz schrieb:
> Hi team,
>
> you probably share the experience, that many new developers are irritated
> by the PHP representation of Typoscript with dots at the end of the
> key names. I suggest an inversion of this for TYPO3 5.0 by the following
> model:
>
>
> we.all.love = typo3
> we.all.love.case = upper
>
> TypoScript 1.0:
>
> $TS['we.']['all.']['love'] = 'typo3';
> $TS['we.']['all.']['love.']['case'] = 'upper';
>
>
> TypoScript 2.0 (OrthoScript):
>
> $TS['we']['all']['love']['='] = 'typo3';
> $TS['we']['all']['love']['case']['='] = 'upper';
>
> What do you think?
Looks a bit odd with the equal sign as array key. More in sync with
other internal code would be something like that:
$TS['we']['all']['love']['_VALUE'] = 'typo3';
$TS['we']['all']['love']['case']['='] = 'upper';
And should it be like this for objects?
$TS['we']['all']['love']['_OBJECT'] = 'TEXT';
$TS['we']['all']['love']['value']['_VALUE'] = 'upper';
But....
The idea is to represent in TS 2.0 TS objects as PHP objects, so there
will be no array any more.
Masi
More information about the TYPO3-project-5_0-general
mailing list