TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FormResultCompiler Class Reference

Public Member Functions

 mergeResult (array $resultArray)
 
 JStop ()
 
 printNeededJSFunctions ()
 

Protected Member Functions

 JSbottom ($formname= 'forms[0]')
 
 loadJavascriptLib ($lib)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
 getPageRenderer ()
 

Protected Attributes

 $extJSCODE = ''
 
 $hiddenFieldAccum = array()
 
 $doSaveFieldName = ''
 
 $inlineData = array()
 
 $stylesheetFiles = []
 
 $additionalJS_post = array()
 
 $additionalJS_submit = array()
 
 $requireJsModules = array()
 
 $pageRenderer = null
 

Detailed Description

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

Definition at line 30 of file FormResultCompiler.php.

Member Function Documentation

getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 322 of file FormResultCompiler.php.

References $GLOBALS.

Referenced by FormResultCompiler\JSbottom().

getLanguageService ( )
protected
Returns
LanguageService

Definition at line 330 of file FormResultCompiler.php.

References $GLOBALS.

Referenced by FormResultCompiler\JSbottom().

getPageRenderer ( )
protected

Wrapper for access to the current page renderer object

Returns

Definition at line 340 of file FormResultCompiler.php.

References FormResultCompiler\$pageRenderer, and GeneralUtility\makeInstance().

Referenced by FormResultCompiler\JSbottom(), FormResultCompiler\loadJavascriptLib(), and FormResultCompiler\printNeededJSFunctions().

JSbottom (   $formname = 'forms[0]')
protected
JStop ( )

JavaScript code added BEFORE the form is drawn:

Returns
string A <script></script> section with JavaScript.

Definition at line 161 of file FormResultCompiler.php.

loadJavascriptLib (   $lib)
protected

Includes a javascript library that exists in the core /typo3/ directory. The backpath is automatically applied.

Parameters
string$libLibrary name. Call it with the full path like "sysext/core/Resources/Public/JavaScript/QueryGenerator.js" to load it
Returns
void

Definition at line 313 of file FormResultCompiler.php.

References FormResultCompiler\$pageRenderer, and FormResultCompiler\getPageRenderer().

Referenced by FormResultCompiler\JSbottom().

mergeResult ( array  $resultArray)

Merge existing data with the given result array

Parameters
array$resultArrayArray returned by child
Returns
void

Definition at line 98 of file FormResultCompiler.php.

References FormResultCompiler\$inlineData, elseif, and ArrayUtility\mergeRecursiveWithOverrule().

printNeededJSFunctions ( )

Prints necessary JavaScript for TCEforms (after the form HTML). currently this is used to transform page-specific options in the TYPO3.Settings array for JS so the JS module can access these values

Returns
string

Definition at line 177 of file FormResultCompiler.php.

References FormResultCompiler\$pageRenderer, FormResultCompiler\getPageRenderer(), and FormResultCompiler\JSbottom().

Member Data Documentation

$additionalJS_post = array()
protected

Definition at line 68 of file FormResultCompiler.php.

$additionalJS_submit = array()
protected

Definition at line 76 of file FormResultCompiler.php.

Referenced by FormResultCompiler\JSbottom().

$doSaveFieldName = ''
protected

Definition at line 49 of file FormResultCompiler.php.

$extJSCODE = ''
protected

Definition at line 35 of file FormResultCompiler.php.

Referenced by FormResultCompiler\JSbottom().

$hiddenFieldAccum = array()
protected

Definition at line 40 of file FormResultCompiler.php.

$inlineData = array()
protected

Definition at line 54 of file FormResultCompiler.php.

Referenced by FormResultCompiler\mergeResult().

$pageRenderer = null
protected
$requireJsModules = array()
protected

Definition at line 84 of file FormResultCompiler.php.

$stylesheetFiles = []
protected

Definition at line 61 of file FormResultCompiler.php.