TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Version\Dependency\ElementEntityProcessor Class Reference

Public Member Functions

 setWorkspace ($workspace)
 
 getWorkspace ()
 
 getDataHandler ()
 
 createNewDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createNewDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createClearDependentElementChildReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createClearDependentElementParentReferenceCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 
 createNewDependentElementCallback (array $callerArguments, array $targetArgument, ElementEntity $caller, $eventName)
 

Protected Attributes

 $workspace
 
 $dataHandler
 

Detailed Description

Processor having generic callback methods for element entities

Definition at line 24 of file ElementEntityProcessor.php.

Member Function Documentation

◆ createClearDependentElementChildReferenceCallback()

TYPO3\CMS\Version\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
NULL|string Skip response (if required)

Definition at line 132 of file ElementEntityProcessor.php.

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

◆ createClearDependentElementParentReferenceCallback()

TYPO3\CMS\Version\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
NULL|string Skip response (if required)

Definition at line 154 of file ElementEntityProcessor.php.

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

◆ createNewDependentElementCallback()

◆ createNewDependentElementChildReferenceCallback()

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

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

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

Definition at line 93 of file ElementEntityProcessor.php.

References TYPO3\CMS\Version\Dependency\ElementEntityProcessor\getDataHandler(), TYPO3\CMS\Version\Dependency\ElementEntity\getTable(), TYPO3\CMS\Backend\Utility\BackendUtility\getTcaFieldConfiguration(), and TYPO3\CMS\Version\Dependency\ElementEntity\RESPONSE_Skip.

Referenced by TYPO3\CMS\Version\Dependency\ElementEntityProcessor\createClearDependentElementChildReferenceCallback().

◆ createNewDependentElementParentReferenceCallback()

TYPO3\CMS\Version\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
\TYPO3\CMS\Version\Dependency\ElementEntity$caller
string$eventName
Returns
NULL|string Skip response (if required)

Definition at line 112 of file ElementEntityProcessor.php.

References TYPO3\CMS\Version\Dependency\ElementEntityProcessor\getDataHandler(), TYPO3\CMS\Backend\Utility\BackendUtility\getTcaFieldConfiguration(), and TYPO3\CMS\Version\Dependency\ElementEntity\RESPONSE_Skip.

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

◆ getDataHandler()

◆ getWorkspace()

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

◆ setWorkspace()

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

Sets the current workspace.

Parameters
int$workspace

Definition at line 41 of file ElementEntityProcessor.php.

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

Member Data Documentation

◆ $dataHandler

TYPO3\CMS\Version\Dependency\ElementEntityProcessor::$dataHandler
protected

◆ $workspace

TYPO3\CMS\Version\Dependency\ElementEntityProcessor::$workspace
protected