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

Public Member Functions

 __construct (private readonly ResponseFactoryInterface $responseFactory, private readonly StreamFactoryInterface $streamFactory, private readonly FormDataCompiler $formDataCompiler, private readonly HashService $hashService,)
 
 createAction (ServerRequestInterface $request)
 
 detailsAction (ServerRequestInterface $request)
 
 synchronizeLocalizeAction (ServerRequestInterface $request)
 
 expandOrCollapseAction (ServerRequestInterface $request)
 

Protected Member Functions

 compileFileReference (ServerRequestInterface $request, array $parentData, $parentFieldName, $fileReferenceUid, array $inlineStructure)
 
 mergeFileReferenceResultIntoJsonResult (array $jsonResult, array $fileReferenceData)
 
 getFileReferenceUids (string $itemList)
 
 getReferenceExpandCollapseStateArray ()
 
 removeFromArray (mixed $needle, array $haystack, bool $strict=false)
 
 getInlineFirstPidFromDomObjectId (string $domObjectId)
 
 extractSignedParentConfigFromRequest (string $contextString)
 
 jsonResponse (array $json=[])
 
 getBackendUserAuthentication ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController
 addJavaScriptModulesToJavaScriptItems (array $modules, JavaScriptItems $items)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile (string $file)
 
 getLanguageService ()
 

Private Attributes

const FILE_REFERENCE_TABLE = 'sys_file_reference'
 

Detailed Description

Handle FormEngine files ajax calls

Definition at line 44 of file FormFilesAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::__construct ( private readonly ResponseFactoryInterface  $responseFactory,
private readonly StreamFactoryInterface  $streamFactory,
private readonly FormDataCompiler  $formDataCompiler,
private readonly HashService  $hashService 
)

Definition at line 48 of file FormFilesAjaxController.php.

Member Function Documentation

◆ compileFileReference()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::compileFileReference ( ServerRequestInterface  $request,
array  $parentData,
  $parentFieldName,
  $fileReferenceUid,
array  $inlineStructure 
)
protected

◆ createAction()

◆ detailsAction()

◆ expandOrCollapseAction()

◆ extractSignedParentConfigFromRequest()

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

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

Definition at line 500 of file FormFilesAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\FormFilesAjaxController\createAction(), TYPO3\CMS\Backend\Controller\FormFilesAjaxController\detailsAction(), and TYPO3\CMS\Backend\Controller\FormFilesAjaxController\synchronizeLocalizeAction().

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::getBackendUserAuthentication ( )
protected

◆ getFileReferenceUids()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::getFileReferenceUids ( string  $itemList)
protected

Gets an array with the uids of file references out of a list of items.

Definition at line 439 of file FormFilesAjaxController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\FormFilesAjaxController\synchronizeLocalizeAction().

◆ getInlineFirstPidFromDomObjectId()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::getInlineFirstPidFromDomObjectId ( string  $domObjectId)
protected

◆ getReferenceExpandCollapseStateArray()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::getReferenceExpandCollapseStateArray ( )
protected

◆ jsonResponse()

◆ mergeFileReferenceResultIntoJsonResult()

◆ removeFromArray()

TYPO3\CMS\Backend\Controller\FormFilesAjaxController::removeFromArray ( mixed  $needle,
array  $haystack,
bool  $strict = false 
)
protected

Remove an element from an array.

Definition at line 472 of file FormFilesAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\FormFilesAjaxController\expandOrCollapseAction().

◆ synchronizeLocalizeAction()

Member Data Documentation

◆ FILE_REFERENCE_TABLE

const TYPO3\CMS\Backend\Controller\FormFilesAjaxController::FILE_REFERENCE_TABLE = 'sys_file_reference'
private