‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor Class Reference

Public Member Functions

 setWorkspace (int $workspace)
 
 getWorkspace ()
 
 getDataHandler ()
 
 transformDependentElementsToUseLiveId (array $elements)
 
string null createNewDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, string $eventName)
 
string null createNewDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, string $eventName)
 
string null createClearDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, string $eventName)
 
string null createClearDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, string $eventName)
 
 createNewDependentElementCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, string $eventName)
 

Protected Attributes

int $workspace
 
DataHandler $dataHandler
 

Detailed Description

Processor having generic callback methods for element entities

Definition at line 30 of file ElementEntityProcessor.php.

Member Function Documentation

◆ createClearDependentElementChildReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createClearDependentElementChildReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
string  $eventName 
)

Callback to determine whether a new child reference shall be considered in the dependency resolver utility. Only elements that are a delete placeholder are considered.

Returns
‪string|null Skip response (if required)

Definition at line 114 of file ElementEntityProcessor.php.

References TYPO3\CMS\Webhooks\Message\$record, TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementChildReferenceCallback(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

◆ createClearDependentElementParentReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createClearDependentElementParentReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
string  $eventName 
)

Callback to determine whether a new parent reference shall be considered in the dependency resolver utility. Only elements that are a delete placeholder are considered.

Returns
‪string|null Skip response (if required)

Definition at line 132 of file ElementEntityProcessor.php.

References TYPO3\CMS\Webhooks\Message\$record, TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementParentReferenceCallback(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

◆ createNewDependentElementCallback()

◆ createNewDependentElementChildReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createNewDependentElementChildReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
string  $eventName 
)

◆ createNewDependentElementParentReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createNewDependentElementParentReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
string  $eventName 
)

Callback to determine whether a new parent reference shall be considered in the dependency resolver utility.

Returns
‪string|null Skip response (if required)

Definition at line 98 of file ElementEntityProcessor.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\getDataHandler(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

Referenced by TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createClearDependentElementParentReferenceCallback().

◆ getDataHandler()

◆ getWorkspace()

TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::getWorkspace ( )

◆ setWorkspace()

TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::setWorkspace ( int  $workspace)

Sets the current workspace.

Definition at line 38 of file ElementEntityProcessor.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\$workspace.

◆ transformDependentElementsToUseLiveId()

TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::transformDependentElementsToUseLiveId ( array  $elements)

Transforms dependent elements to use the liveId as array key.

Parameters
ElementEntity[]$elements

Definition at line 64 of file ElementEntityProcessor.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntity\getIdentifier().

Member Data Documentation

◆ $dataHandler

DataHandler TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::$dataHandler
protected

◆ $workspace

int TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::$workspace
protected