TYPO3 CMS  TYPO3_8-7
TYPO3\CMS\Backend\Controller\FormInlineAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\FormInlineAjaxController:
TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController

Protected Member Functions

 mergeChildResultIntoJsonResult (array $jsonResult, array $childResult)
 
 getInlineRelatedRecordsUidArray ($itemList)
 
 getInlineExpandCollapseStateArrayForTableUid ($table, $uid)
 
 getInlineExpandCollapseStateArray ()
 
 backendUserHasUcInlineView (BackendUserAuthentication $backendUser)
 
 removeFromArray ($needle, $haystack, $strict=false)
 
 getErrorMessageForAJAX ($message)
 
 getInlineFirstPidFromDomObjectId ($domObjectId)
 
 extractSignedParentConfigFromRequest (string $contextString)
 
 getBackendUserAuthentication ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController
 createExecutableStringRepresentationOfRegisteredRequireJsModules (array $result)
 
 getRelativePathToStylesheetFile (string $stylesheetFile)
 

Detailed Description

Handle FormEngine inline ajax calls

Definition at line 35 of file FormInlineAjaxController.php.

Member Function Documentation

◆ backendUserHasUcInlineView()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::backendUserHasUcInlineView ( BackendUserAuthentication  $backendUser)
protected

Method to check whether the backend user has the property inline view for the current IRRE item. In existing or old IRRE items the attribute may not exist, then the unserialize will fail.

Parameters
BackendUserAuthentication$backendUser
Returns
bool

Definition at line 701 of file FormInlineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\FormInlineAjaxController\getInlineExpandCollapseStateArray().

◆ extractSignedParentConfigFromRequest()

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

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 765 of file FormInlineAjaxController.php.

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

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 783 of file FormInlineAjaxController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\FormInlineAjaxController\getInlineExpandCollapseStateArray().

◆ getErrorMessageForAJAX()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::getErrorMessageForAJAX (   $message)
protected

Generates an error message that transferred as JSON for AJAX calls

Parameters
string$messageThe error message to be shown
Returns
array The error message in a JSON array

Definition at line 729 of file FormInlineAjaxController.php.

◆ getInlineExpandCollapseStateArray()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::getInlineExpandCollapseStateArray ( )
protected

◆ getInlineExpandCollapseStateArrayForTableUid()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::getInlineExpandCollapseStateArrayForTableUid (   $table,
  $uid 
)
protected

Return expand / collapse state array for a given table / uid combination

Parameters
string$tableHandled table
int$uidHandled uid
Returns
array

Definition at line 662 of file FormInlineAjaxController.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\getInlineExpandCollapseStateArray().

◆ getInlineFirstPidFromDomObjectId()

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

Get inlineFirstPid from a given objectId string

Parameters
string$domObjectIdThe id attribute of an element
Returns
int|null Pid or null

Definition at line 745 of file FormInlineAjaxController.php.

◆ getInlineRelatedRecordsUidArray()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::getInlineRelatedRecordsUidArray (   $itemList)
protected

Gets an array with the uids of related records out of a list of items. This list could contain more information than required. This methods just extracts the uids.

Parameters
string$itemListThe list of related child records
Returns
array An array with uids

Definition at line 643 of file FormInlineAjaxController.php.

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

◆ mergeChildResultIntoJsonResult()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::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$jsonResultGiven json result
array$childResultGiven child result
Returns
array Merged json array

Definition at line 590 of file FormInlineAjaxController.php.

References TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController\createExecutableStringRepresentationOfRegisteredRequireJsModules(), TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController\getRelativePathToStylesheetFile(), and TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

◆ removeFromArray()

TYPO3\CMS\Backend\Controller\FormInlineAjaxController::removeFromArray (   $needle,
  $haystack,
  $strict = false 
)
protected

Remove an element from an array.

Parameters
mixed$needleThe element to be removed.
array$haystackThe array the element should be removed from.
bool$strictSearch elements strictly.
Returns
array The array $haystack without the $needle

Definition at line 714 of file FormInlineAjaxController.php.