CommandMap

class \TYPO3\CMS\Workspaces\DataHandler\CommandMap

Handles the \TYPO3\CMS\Core\DataHandling\DataHandler command map and is only used in combination with \TYPO3\CMS\Core\DataHandling\DataHandler

Table of Contents

Properties

$elementEntityProcessor  : ElementEntityProcessor|null

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

Methods

process()

Processes the command map.

public process(array $commandMap, int $workspace) : array

Parameters

$commandMap : array
$workspace : int

Return values

array

explodeSetStage()

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

array

getCommonClearProperties()

Callback to get common properties of dependent elements for clearing.

protected getCommonClearProperties(ElementEntity $element) : array

Parameters

$element : ElementEntity

Return values

array

getCommonSwapProperties()

Callback to get common properties of dependent elements for swapping/publishing.

protected getCommonSwapProperties(ElementEntity $element) : array

Parameters

$element : ElementEntity

Return values

array

getSetStageProperties()

Callback to get common properties of dependent elements for staging.

protected getSetStageProperties(ElementEntity $element) : array

Parameters

$element : ElementEntity

Return values

array

resolveWorkspacesDiscardDependencies()

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

array

resolveWorkspacesPublishDependencies()

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

array

resolveWorkspacesSetStageDependencies()

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

array

transformDependentElementsToUseLiveId()

Transforms dependent elements to use the liveId as array key.

protected transformDependentElementsToUseLiveId(ElementEntity[] $elements) : array

Parameters

$elements : ElementEntity[]

Return values

array
On this page