2 namespace TYPO3\CMS\Core\TypoScript;
71 $this->constants = array($configTemplate,
'');
73 $theConstants = $this->generateConfig_constants();
74 $this->ext_localGfxPrefix = $pathAbs;
75 $this->ext_localWebGfxPrefix = $backPath . $pathRel;
76 $this->ext_backPath = $backPath;
90 $this->flatSetup = array();
93 $this->flatSetup = $temp;
94 foreach ($theConstants as $k => $p) {
95 if (isset($this->objReg[$k])) {
96 $theConstants[$k][
'value'] = $this->ext_realValues[$k];
100 $this->categories = array();
103 return $theConstants;
134 public function ext_getForm($cat, $theConstants, $script =
'', $addFields =
'', $extKey =
'', $addFormTag =
true)
137 $printFields = trim($this->ext_printFields($theConstants, $cat));
140 function uFormUrl(aname) {
145 $content .=
'<form action="' . htmlspecialchars(($script ?:
GeneralUtility::linkThisScript())) .
'" name="' . $this->ext_CEformName .
'" method="post" enctype="multipart/form-data">';
147 $content .= $addFields;
148 $content .= $printFields;
149 $content .=
'<input class="btn btn-default" type="submit" name="submit" value="' . $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_tsfe.xlf:update',
true) .
'" id="configuration-submit-' . htmlspecialchars($extKey) .
'" />';
151 $content .= $example ?
'<hr/>' . $example :
'';
163 if ($this->helpConfig[
'imagetag'] || $this->helpConfig[
'description'] || $this->helpConfig[
'header']) {
164 $out =
'<div align="center">' . $this->helpConfig[
'imagetag'] .
'</div><br />'
165 . ($this->helpConfig[
'description'] ? implode(explode(
'//', $this->helpConfig[
'description']),
'<br />') .
'<br />' :
'')
166 . ($this->helpConfig[
'bulletlist'] ?
'<ul><li>' . implode(explode(
'//', $this->helpConfig[
'bulletlist']),
'<li>') .
'</ul>' :
'<BR>');
180 $parseObj->parse(implode(LF, $this->ext_incomingValues));
181 $arr2 = $parseObj->setup;
194 return '<span class="label label-danger">' . $key .
'</span>';
203 $iFile = $this->ext_localGfxPrefix . $imgConf;
204 $tFile = $this->ext_localWebGfxPrefix . $imgConf;
205 $imageInfo = @getImagesize($iFile);
206 return '<img src="' . $tFile .
'" ' . $imageInfo[3] .
'>';
215 $fN =
'data[' . $params[
'name'] .
']';
216 $idName = str_replace(
'.',
'-', $params[
'name']);
217 $fV = ($params[
'value'] = isset($this->ext_realValues[$params[
'name']]) ? $this->ext_realValues[$params[
'name']] : $params[
'default_value']);
220 if (preg_match(
'/^\\{[\\$][a-zA-Z0-9\\.]*\\}$/', trim($fV), $reg)) {
223 $fV = htmlspecialchars($fV);
224 return array($fN, $fV, $params, $idName);
234 $this->ext_incomingValues[$key] = $key .
'=' . $var;