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

Felix Oertel post at typo3felix.de
Mon Feb 8 18:15:49 CET 2010


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13418.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100208/e8dba25d/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_13418.ts
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100208/e8dba25d/attachment.asc>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100208/e8dba25d/attachment.htm>


More information about the TYPO3-team-core mailing list