32 protected $ajaxSaveType =
'TypoScriptTemplateInformationModuleFunctionController';
38 if ($this->t3editor == NULL) {
55 if (\
TYPO3\CMS\Core\Utility\GeneralUtility::_GET(
'M') ===
'web_ts') {
58 $pObj->JScode .=
$t3editor->getJavascriptCode($pObj);
75 foreach (array(
'constants',
'config') as $type) {
77 $attributes =
'rows="' .
$parameters[
'numberOfRows'] .
'" ' .
'wrap="off" ' . $pObj->pObj->doc->formWidth(48, TRUE,
'width:98%;height:60%');
78 $title =
$GLOBALS[
'LANG']->getLL(
'template') .
' ' . htmlspecialchars(
$parameters[
'tplRow'][
'title']) .
$GLOBALS[
'LANG']->getLL(
'delimiter') .
' ' .
$GLOBALS[
'LANG']->getLL($type);
79 $outCode =
$t3editor->getCodeEditor(
'data[' . $type .
']',
'fixed-font enable-tab',
'$1', $attributes, $title, array(
80 'pageId' => (
int)$pObj->pObj->id
82 $parameters[
'theOutput'] = preg_replace(
'/\\<textarea name="data\\[' . $type .
'\\]".*\\>([^\\<]*)\\<\\/textarea\\>/mi', $outCode,
$parameters[
'theOutput']);
93 $savingsuccess = FALSE;
96 if (!is_numeric($pageId) || $pageId < 1) {
102 $template_uid = $set[
'templatesOnPage'] ?: 0;
109 $tplRow = $tmpl->ext_getFirstTemplate($pageId, $template_uid);
110 $existTemplate = is_array($tplRow) ? TRUE : FALSE;
111 if ($existTemplate) {
112 $saveId = $tplRow[
'_ORIG_uid'] ?: $tplRow[
'uid'];
115 if ($POST[
'submit']) {
118 if (is_array($POST[
'data'])) {
119 foreach ($POST[
'data'] as $field => $val) {
124 $val = str_replace(array(CRLF, CR), LF, $val);
129 $recData[
'sys_template'][$saveId][$field] = $val;
134 if (count($recData)) {
139 $tstemplateinfo->pObj = $pObj;
141 $recData[
'sys_template'][$saveId] = $tstemplateinfo->processTemplateRowBeforeSaving($recData[
'sys_template'][$saveId]);
144 $tce->stripslashes_values = 0;
146 $tce->start($recData, array());
148 $tce->process_datamap();
151 $tce->clear_cacheCmd(
'all');
152 $savingsuccess = TRUE;
157 return $savingsuccess;
static makeInstance($className)
postOutputProcessingHook($parameters, $pObj)
preStartPageHook($parameters, $pObj)
static getModuleData($MOD_MENU, $CHANGED_SETTINGS, $modName, $type='', $dontValidateList='', $setDefaultList='')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]