FormResultCompiler

class \TYPO3\CMS\Backend\Form\FormResultCompiler

Uses
FormResultTrait

This is form engine - Class for creating the backend editing forms.

Table of Contents

Properties

$additionalInlineLanguageLabelFiles  : array
Additional language label files to include.
$additionalJavaScriptPost  : array
Additional JavaScript printed after the form
$doSaveFieldName  : string
Can be set to point to a field name in the form which will be set to '1' when the form is submitted with a *save* button. This way the recipient script can determine that the form was submitted for save and not "close" for example.
$hiddenFieldAccum  : array
$inlineData  : array
$pageRenderer  : PageRenderer
$requireJsModules  : array
Array with requireJS modules, use module name as key, the value could be callback code.
$stylesheetFiles  : array
List of additional style sheet files to load

Methods

addCssFiles()  : string
Adds CSS files BEFORE the form is drawn
mergeResult()  : mixed
Merge existing data with the given result array
printNeededJSFunctions()  : string
Prints necessary JavaScript for TCEforms (after the form HTML).
getBackendUserAuthentication()  : BackendUserAuthentication
getLanguageService()  : LanguageService
Returns an instance of LanguageService
getPageRenderer()  : PageRenderer
Wrapper for access to the current page renderer object
JSbottom()  : string
JavaScript bottom code
serializeJavaScriptModuleInstructionItems()  : array

Properties

$additionalInlineLanguageLabelFiles

Additional language label files to include.

protected array $additionalInlineLanguageLabelFiles = []

$additionalJavaScriptPost

Additional JavaScript printed after the form

protected array $additionalJavaScriptPost = []

$doSaveFieldName

Can be set to point to a field name in the form which will be set to '1' when the form is submitted with a *save* button. This way the recipient script can determine that the form was submitted for save and not "close" for example.

protected string $doSaveFieldName = ''

$hiddenFieldAccum

protected array $hiddenFieldAccum = []

HTML of additional hidden fields rendered by sub containers

$inlineData

protected array $inlineData = []

Data array from IRRE pushed to frontend as json array

$requireJsModules

Array with requireJS modules, use module name as key, the value could be callback code.

protected array $requireJsModules = []

Use NULL as value if no callback is used.

$stylesheetFiles

List of additional style sheet files to load

protected array $stylesheetFiles = []

Methods

addCssFiles()

Adds CSS files BEFORE the form is drawn

public addCssFiles() : string

Return values

string

mergeResult()

Merge existing data with the given result array

public mergeResult(array $resultArray) : mixed

Parameters

$resultArray : array

Array returned by child

printNeededJSFunctions()

Prints necessary JavaScript for TCEforms (after the form HTML).

public printNeededJSFunctions() : string

currently this is used to transform page-specific options in the TYPO3.Settings array for JS so the JS module can access these values

Return values

string

JSbottom()

JavaScript bottom code

protected JSbottom() : string

Return values

string —

A section with JavaScript - if $update is FALSE, embedded in <script></script>

On this page