Project

General

Profile

Actions

Feature #17667

closed

Make FORM capabele to set multidimensional vars automatically

Added by Peter Russ over 16 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2007-10-10
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.1
Tags:
Complexity:
Sprint Focus:

Description

Situation:
Correct naming for vars of a extension requires to use the extsions prefixId to receive the vars automatically. But if you uses this convention to get a FORM in your extension rendered, FORMs will not be able to revieve and display this vars automatically.

After dicussion on dev I decided to extend t3lib_content and add the new required function there. IMHO it would make more to add this to t3lib_div as a static as this might be also helpful for BE or extension developement.

But life is to short to do it by my own...

This new function checks a multidimensional key can be found in an array
e.g.
$key=array('tx_myextension' => array('var1' => 0) or
$key=parse_str('tx_myextension[var1]0')

against any array, e.g $_POST or $_GET and is capable to return either true/false or the value if found.

Works also for plain keys ;-)
(issue imported from #M6494)


Files

class.tslib_content.diff (2.17 KB) class.tslib_content.diff Administrator Admin, 2007-10-10 18:58
Actions

Also available in: Atom PDF