‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\SiteInlineAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\SiteInlineAjaxController:
TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController

Public Member Functions

 __construct (private readonly FormDataCompiler $formDataCompiler, private readonly SiteLanguagePresets $siteLanguagePresets, private readonly HashService $hashService,)
 
 newInlineChildAction (ServerRequestInterface $request)
 
 openInlineChildAction (ServerRequestInterface $request)
 

Protected Member Functions

array compileChild (ServerRequestInterface $request, array $parentData, string $parentFieldName, int $childUid, array $inlineStructure)
 
array mergeChildResultIntoJsonResult (array $jsonResult, array $childResult)
 
 extractSignedParentConfigFromRequest (string $contextString)
 
int null getInlineFirstPidFromDomObjectId (string $domObjectId)
 
 getLanguageById (int $languageId)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController
 addJavaScriptModulesToJavaScriptItems (array $modules, JavaScriptItems $items)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile (string $file)
 
 getLanguageService ()
 

Detailed Description

Site configuration FormEngine controller class. Receives inline "edit" and "new" commands to expand / create site configuration inline records.

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 45 of file SiteInlineAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::__construct ( private readonly FormDataCompiler  $formDataCompiler,
private readonly SiteLanguagePresets  $siteLanguagePresets,
private readonly HashService  $hashService 
)

Default constructor

Definition at line 50 of file SiteInlineAjaxController.php.

References $GLOBALS.

Member Function Documentation

◆ compileChild()

array TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::compileChild ( ServerRequestInterface  $request,
array  $parentData,
string  $parentFieldName,
int  $childUid,
array  $inlineStructure 
)
protected

Compile a full child record

Parameters
array$parentData‪Result array of parent
string$parentFieldName‪Name of parent field
int$childUid‪Uid of child to compile
array$inlineStructure‪Current inline structure
Returns
‪array Full result array
Exceptions

Definition at line 261 of file SiteInlineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\openInlineChildAction().

◆ extractSignedParentConfigFromRequest()

TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::extractSignedParentConfigFromRequest ( string  $contextString)
protected

Inline ajax helper method.

Validates the config that is transferred over the wire to provide the correct TCA config for the parent table

Parameters
string$contextString
Exceptions

Definition at line 347 of file SiteInlineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\newInlineChildAction(), and TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\openInlineChildAction().

◆ getInlineFirstPidFromDomObjectId()

int null TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::getInlineFirstPidFromDomObjectId ( string  $domObjectId)
protected

Get inlineFirstPid from a given objectId string

Parameters
string$domObjectId‪The id attribute of an element
Returns
‪int|null Pid or null

Definition at line 372 of file SiteInlineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\newInlineChildAction(), and TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\openInlineChildAction().

◆ getLanguageById()

TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::getLanguageById ( int  $languageId)
protected

Find a site language by id. This will return the first occurrence of a language, even if the same language is used in other site configurations.

Definition at line 388 of file SiteInlineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\newInlineChildAction().

◆ mergeChildResultIntoJsonResult()

array TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::mergeChildResultIntoJsonResult ( array  $jsonResult,
array  $childResult 
)
protected

Merge stuff from child array into json array. This method is needed since ajax handling methods currently need to put scriptCalls before and after child code.

Parameters
array$jsonResult‪Given json result
array$childResult‪Given child result
Returns
‪array Merged json array

Definition at line 310 of file SiteInlineAjaxController.php.

References TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController\addJavaScriptModulesToJavaScriptItems(), TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController\getLabelsFromLocalizationFile(), and TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController\getRelativePathToStylesheetFile().

Referenced by TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\newInlineChildAction(), and TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\openInlineChildAction().

◆ newInlineChildAction()

◆ openInlineChildAction()