CommandMap
class \
Handles the \TYPO3\CMS\Core\DataHandling\DataHandler command map and is only used in combination with \TYPO3\CMS\Core\DataHandling\DataHandler
Internal
Table of Contents
Properties
Methods
- process() : array
- Processes the command map.
- explodeSetStage() : array
- Explodes id-lists in the command map for staging actions.
- getCommonClearProperties() : array
- Callback to get common properties of dependent elements for clearing.
- getCommonSwapProperties() : array
- Callback to get common properties of dependent elements for swapping/publishing.
- getElementEntityProcessor() : ElementEntityProcessor
- Gets the element entity processor.
- getSetStageProperties() : array
- Callback to get common properties of dependent elements for staging.
- resolveWorkspacesDiscardDependencies() : array
- Resolves workspaces related dependencies for clearing/flushing of the command map.
- resolveWorkspacesPublishDependencies() : array
- Resolves workspaces related dependencies for swapping/publishing of the command map.
- resolveWorkspacesSetStageDependencies() : array
- Resolves workspaces related dependencies for staging of the command map.
- transformDependentElementsToUseLiveId() : array
- Transforms dependent elements to use the liveId as array key.
Properties
$elementEntityProcessor
protected
ElementEntityProcessor|null
$elementEntityProcessor
Methods
process()
Processes the command map.
public
process(array $commandMap, int $workspace) : array
Parameters
- $commandMap : array
- $workspace : int
Return values
arrayexplodeSetStage()
Explodes id-lists in the command map for staging actions.
protected
explodeSetStage(array $commandMap, string $table, string|int $versionIdList, array $properties) : array
Parameters
- $commandMap : array
- $table : string
- $versionIdList : string|int
- $properties : array
Return values
arraygetCommonClearProperties()
Callback to get common properties of dependent elements for clearing.
protected
getCommonClearProperties(ElementEntity $element) : array
Parameters
- $element : ElementEntity
Return values
arraygetCommonSwapProperties()
Callback to get common properties of dependent elements for swapping/publishing.
protected
getCommonSwapProperties(ElementEntity $element) : array
Parameters
- $element : ElementEntity
Return values
arraygetElementEntityProcessor()
Gets the element entity processor.
protected
getElementEntityProcessor(int $workspace) : ElementEntityProcessor
Parameters
- $workspace : int
Return values
ElementEntityProcessorgetSetStageProperties()
Callback to get common properties of dependent elements for staging.
protected
getSetStageProperties(ElementEntity $element) : array
Parameters
- $element : ElementEntity
Return values
arrayresolveWorkspacesDiscardDependencies()
Resolves workspaces related dependencies for clearing/flushing of the command map.
protected
resolveWorkspacesDiscardDependencies(array $commandMap, int $workspace) : array
Workspaces records that have children or (relative) parents which are versionized but not cleared/flushed with this request, are removed from the command map.
Parameters
- $commandMap : array
- $workspace : int
Return values
arrayresolveWorkspacesPublishDependencies()
Resolves workspaces related dependencies for swapping/publishing of the command map.
protected
resolveWorkspacesPublishDependencies(array $commandMap, int $workspace) : array
Workspaces records that have children or (relative) parents which are versionized but not published with this request, are removed from the command map. Otherwise this would produce hanging record sets and lost references.
Parameters
- $commandMap : array
- $workspace : int
Return values
arrayresolveWorkspacesSetStageDependencies()
Resolves workspaces related dependencies for staging of the command map.
protected
resolveWorkspacesSetStageDependencies(array $commandMap, int $workspace) : array
Workspaces records that have children or (relative) parents which are versionized but not staged with this request, are removed from the command map.
Parameters
- $commandMap : array
- $workspace : int
Return values
arraytransformDependentElementsToUseLiveId()
Transforms dependent elements to use the liveId as array key.
protected
transformDependentElementsToUseLiveId(ElementEntity[] $elements) : array
Parameters
- $elements : ElementEntity[]