Feature #17667

Make FORM capabele to set multidimensional vars automatically

Added by Peter Russ almost 12 years ago. Updated about 6 years ago.

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

0%

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)

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

History

#1 Updated by Alexander Opitz over 6 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

#2 Updated by Alexander Opitz about 6 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Also available in: Atom PDF