‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController:
TYPO3\CMS\Backend\Controller\FormFlexAjaxController TYPO3\CMS\Backend\Controller\FormInlineAjaxController TYPO3\CMS\Backend\Controller\FormSlugAjaxController TYPO3\CMS\Backend\Controller\SiteInlineAjaxController

Protected Member Functions

array createExecutableStringRepresentationOfRegisteredRequireJsModules (array $result)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile ($file)
 

Detailed Description

Abstract class for a couple of FormEngine controllers triggered by ajax calls. The class containers some helpers to for instance prepare the form render result for json output.

Marked as internal for now, methods in this class may change any time.

Definition at line 30 of file AbstractFormEngineAjaxController.php.

Member Function Documentation

◆ createExecutableStringRepresentationOfRegisteredRequireJsModules()

array TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::createExecutableStringRepresentationOfRegisteredRequireJsModules ( array  $result)
protected

Gets result array from FormEngine and returns string with js modules that need to be loaded and evaluated by JavaScript.

Parameters
array$result
Returns
‪array

Definition at line 39 of file AbstractFormEngineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\FormFlexAjaxController\containerAdd(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\mergeChildResultIntoJsonResult().

◆ getLabelsFromLocalizationFile()

array TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::getLabelsFromLocalizationFile (   $file)
protected

Parse a language file and get a label/value array from it.

Parameters
string$file‪EXT:path/to/file
Returns
‪array Label/value array

Definition at line 99 of file AbstractFormEngineAjaxController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Backend\Controller\FormFlexAjaxController\containerAdd(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\mergeChildResultIntoJsonResult().

◆ getRelativePathToStylesheetFile()

string TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::getRelativePathToStylesheetFile ( string  $stylesheetFile)
protected

Resolve a CSS file position, possibly prefixed with 'EXT:'

Parameters
string$stylesheetFile‪Given file, possibly prefixed with EXT:
Returns
‪string Web root relative position to file

Definition at line 80 of file AbstractFormEngineAjaxController.php.

References TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), and TYPO3\CMS\Core\Utility\PathUtility\getRelativePathTo().

Referenced by TYPO3\CMS\Backend\Controller\FormFlexAjaxController\containerAdd(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\mergeChildResultIntoJsonResult().