65 trigger_error(
'Class ConfigurationForm will be removed in TYPO3 v10.0.', E_USER_DEPRECATED);
75 $this->constants = [$configTemplate,
''];
91 $this->flatSetup = [];
94 $this->flatSetup = $temp;
95 foreach ($theConstants as $k => $p) {
96 if (isset($this->objReg[$k])) {
97 $theConstants[$k][
'value'] = $this->ext_realValues[$k];
101 $this->categories = [];
104 return $theConstants;
126 public function ext_getForm($cat, $theConstants, $script =
'', $addFields =
'', $extKey =
'', $addFormTag =
true)
130 $content .= GeneralUtility::wrapJS(
'
131 function uFormUrl(aname) {
132 document.' . $this->ext_CEformName .
'.action = ' . GeneralUtility::quoteJSvalue(GeneralUtility::linkThisScript() .
'#') .
'+aname;
136 $content .=
'<form action="' . htmlspecialchars(($script ?: GeneralUtility::linkThisScript())) .
'" name="' . $this->ext_CEformName .
'" method="post" enctype="multipart/form-data">';
138 $content .= $addFields;
139 $content .= $printFields;
140 $content .=
'<input class="btn btn-default" type="submit" name="submit" value="' . htmlspecialchars($this->
getLanguageService()->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_tsfe.xlf:update')) .
'" id="configuration-submit-' . htmlspecialchars($extKey) .
'" />';
152 $parseObj = GeneralUtility::makeInstance(Parser\TypoScriptParser::class);
153 $parseObj->parse(implode(LF, $this->ext_incomingValues));
154 $arr2 = $parseObj->setup;
165 $fN =
'data[' . $params[
'name'] .
']';
166 $idName = str_replace(
'.',
'-', $params[
'name']);
167 $fV = ($params[
'value'] = $this->ext_realValues[$params[
'name']] ?? $params[
'default_value']);
170 if (preg_match(
'/^\\{[\\$][a-zA-Z0-9\\.]*\\}$/', trim($fV), $reg)) {
173 $fV = htmlspecialchars($fV);
174 return [$fN, $fV, $params, $idName];
183 $this->ext_incomingValues[$key] = $key .
'=' . $var;