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

Public Member Functions

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

Protected Attributes

int $workspace
 
DataHandler $dataHandler
 

Detailed Description

Processor having generic callback methods for element entities

Definition at line 26 of file ElementEntityProcessor.php.

Member Function Documentation

◆ createClearDependentElementChildReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createClearDependentElementChildReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $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.

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
‪string|null Skip response (if required)

Definition at line 136 of file ElementEntityProcessor.php.

References TYPO3\CMS\Core\Type\Enumeration\cast(), TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementChildReferenceCallback(), TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER, TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

◆ createClearDependentElementParentReferenceCallback()

string null TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor::createClearDependentElementParentReferenceCallback ( array  $callerArguments,
array  $targetArgument,
ElementEntity  $caller,
  $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.

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
‪string|null Skip response (if required)

Definition at line 158 of file ElementEntityProcessor.php.

References TYPO3\CMS\Core\Type\Enumeration\cast(), TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementParentReferenceCallback(), TYPO3\CMS\Core\Versioning\VersionState\DELETE_PLACEHOLDER, TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

◆ createNewDependentElementCallback()

◆ createNewDependentElementChildReferenceCallback()

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

◆ createNewDependentElementParentReferenceCallback()

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

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

Parameters
array$callerArguments
array$targetArgument
ElementEntity$caller
string$eventName
Returns
‪string|null Skip response (if required)

Definition at line 116 of file ElementEntityProcessor.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\getDataHandler(), TYPO3\CMS\Core\DataHandling\DataHandler\getInlineFieldType(), TYPO3\CMS\Backend\Utility\BackendUtility\getTcaFieldConfiguration(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\RESPONSE_Skip.

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

◆ getDataHandler()

◆ getWorkspace()

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

◆ setWorkspace()

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

Sets the current workspace.

Parameters
int$workspace

Definition at line 41 of file ElementEntityProcessor.php.

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

◆ transformDependentElementsToUseLiveId()

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

Transforms dependent elements to use the liveId as array key.

Parameters
array | ElementEntity[]$elements
Returns
‪array

Definition at line 73 of file ElementEntityProcessor.php.

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

Referenced by TYPO3\CMS\Workspaces\DataHandler\CommandMap\applyWorkspacesDependencies().

Member Data Documentation

◆ $dataHandler

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

◆ $workspace

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