typo3/sysext/core/Classes/Utility/GeneralUtility.php 1 location
|
@@ 1221-1233 (lines=13) @@
|
| 1218 |
|
* @param array $ts TypoScript configuration array |
| 1219 |
|
* @return array TypoScript configuration array without dots at the end of all keys |
| 1220 |
|
*/ |
| 1221 |
|
public static function removeDotsFromTS(array $ts) |
| 1222 |
|
{ |
| 1223 |
|
$out = []; |
| 1224 |
|
foreach ($ts as $key => $value) { |
| 1225 |
|
if (is_array($value)) { |
| 1226 |
|
$key = rtrim($key, '.'); |
| 1227 |
|
$out[$key] = self::removeDotsFromTS($value); |
| 1228 |
|
} else { |
| 1229 |
|
$out[$key] = $value; |
| 1230 |
|
} |
| 1231 |
|
} |
| 1232 |
|
return $out; |
| 1233 |
|
} |
| 1234 |
|
|
| 1235 |
|
/************************* |
| 1236 |
|
* |
typo3/sysext/backend/Classes/Controller/EditDocumentController.php 1 location
|
@@ 907-918 (lines=12) @@
|
| 904 |
|
* @param array $parameters Should be an empty array by default |
| 905 |
|
* @param array $typoScript The TypoScript configuration |
| 906 |
|
*/ |
| 907 |
|
protected function parseAdditionalGetParameters(array &$parameters, array $typoScript) |
| 908 |
|
{ |
| 909 |
|
foreach ($typoScript as $key => $value) { |
| 910 |
|
if (is_array($value)) { |
| 911 |
|
$key = rtrim($key, '.'); |
| 912 |
|
$parameters[$key] = []; |
| 913 |
|
$this->parseAdditionalGetParameters($parameters[$key], $value); |
| 914 |
|
} else { |
| 915 |
|
$parameters[$key] = $value; |
| 916 |
|
} |
| 917 |
|
} |
| 918 |
|
} |
| 919 |
|
|
| 920 |
|
/** |
| 921 |
|
* Main module operation |