[TYPO3-core] RFC #13418: Allow t3lib_div::_GETset() to set specified key

Felix Oertel post at typo3felix.de
Mon Mar 15 20:28:49 CET 2010


Yeah REMINDER #3 baby ...

fix is small, unit-test is attached, i'm lookin forward to hear some 
good reasons for not testing it ...

let's rock it

Am 08.02.10 18:15, schrieb Felix Oertel:
> Hi guys,
>
> this is a SVN patch request.
>
> Type: Feature
>
> Bugtracker references: http://bugs.typo3.org/view.php?id=13418
>
> Branches: Trunk
>
> Problem:
> At the moment t3lib_div::_GETset() is only able to replace hole arrays
> in $_GET. If you want to set $_GET['foo']['bar'], this is not possible
> without deleting everything else in $_GET['foo'].
>
> It would be nice to set keys directly like t3lib_div::_GETset('value',
> 'foo|bar');
>
> Solution:
> Tune up _GETset() ;-)
>
> Testcase:
> I attached a userFunc-PHP you can use from fileadmin/ to test the
> different ways of setting $_GET-vars through t3lib_div::_GETset()
>
> Regards, Felix
> typo3felix.de


More information about the TYPO3-team-core mailing list