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

Public Member Functions

 __construct ()
 
ResponseInterface newInlineChildAction (ServerRequestInterface $request)
 
ResponseInterface openInlineChildAction (ServerRequestInterface $request)
 

Protected Member Functions

array compileChild (array $parentData, string $parentFieldName, int $childUid, array $inlineStructure)
 
array mergeChildResultIntoJsonResult (array $jsonResult, array $childResult)
 
array extractSignedParentConfigFromRequest (string $contextString)
 
int null getInlineFirstPidFromDomObjectId (string $domObjectId)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController
array createExecutableStringRepresentationOfRegisteredRequireJsModules (array $result)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile ($file)
 

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 37 of file SiteInlineAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::__construct ( )

Default constructor

Definition at line 42 of file SiteInlineAjaxController.php.

References $GLOBALS.

Member Function Documentation

◆ compileChild()

array TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::compileChild ( 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 269 of file SiteInlineAjaxController.php.

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

◆ extractSignedParentConfigFromRequest()

array 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 374 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 395 of file SiteInlineAjaxController.php.

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

◆ 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 319 of file SiteInlineAjaxController.php.

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

◆ newInlineChildAction()

ResponseInterface TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::newInlineChildAction ( ServerRequestInterface  $request)

◆ openInlineChildAction()

ResponseInterface TYPO3\CMS\Backend\Controller\SiteInlineAjaxController::openInlineChildAction ( ServerRequestInterface  $request)

Show the details of site configuration child records.

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface
Exceptions

Definition at line 182 of file SiteInlineAjaxController.php.

References TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\compileChild(), TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\extractSignedParentConfigFromRequest(), and TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\getInlineFirstPidFromDomObjectId().