CommandMap

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

$elementEntityProcessor  : ElementEntityProcessor|null

Methods

process()  : array<string|int, mixed>
Processes the command map.
explodeSetStage()  : array<string|int, mixed>
Explodes id-lists in the command map for staging actions.
getCommonClearProperties()  : array<string|int, mixed>
Callback to get common properties of dependent elements for clearing.
getCommonSwapProperties()  : array<string|int, mixed>
Callback to get common properties of dependent elements for swapping/publishing.
getElementEntityProcessor()  : ElementEntityProcessor
Gets the element entity processor.
getSetStageProperties()  : array<string|int, mixed>
Callback to get common properties of dependent elements for staging.
resolveWorkspacesDiscardDependencies()  : array<string|int, mixed>
Resolves workspaces related dependencies for clearing/flushing of the command map.
resolveWorkspacesPublishDependencies()  : array<string|int, mixed>
Resolves workspaces related dependencies for swapping/publishing of the command map.
resolveWorkspacesSetStageDependencies()  : array<string|int, mixed>
Resolves workspaces related dependencies for staging of the command map.
transformDependentElementsToUseLiveId()  : array<string|int, mixed>
Transforms dependent elements to use the liveId as array key.

Properties

Methods

process()

Processes the command map.

public process(array<string|int, mixed> $commandMap, int $workspace) : array<string|int, mixed>
Parameters
$commandMap : array<string|int, mixed>
$workspace : int
Return values
array<string|int, mixed>

explodeSetStage()

Explodes id-lists in the command map for staging actions.

protected explodeSetStage(array<string|int, mixed> $commandMap, string $table, string|int $versionIdList, array<string|int, mixed> $properties) : array<string|int, mixed>
Parameters
$commandMap : array<string|int, mixed>
$table : string
$versionIdList : string|int
$properties : array<string|int, mixed>
Return values
array<string|int, mixed>

getCommonClearProperties()

Callback to get common properties of dependent elements for clearing.

protected getCommonClearProperties(ElementEntity $element) : array<string|int, mixed>
Parameters
$element : ElementEntity
Return values
array<string|int, mixed>

getCommonSwapProperties()

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

protected getCommonSwapProperties(ElementEntity $element) : array<string|int, mixed>
Parameters
$element : ElementEntity
Return values
array<string|int, mixed>

getSetStageProperties()

Callback to get common properties of dependent elements for staging.

protected getSetStageProperties(ElementEntity $element) : array<string|int, mixed>
Parameters
$element : ElementEntity
Return values
array<string|int, mixed>

resolveWorkspacesDiscardDependencies()

Resolves workspaces related dependencies for clearing/flushing of the command map.

protected resolveWorkspacesDiscardDependencies(array<string|int, mixed> $commandMap, int $workspace) : array<string|int, mixed>

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<string|int, mixed>
$workspace : int
Return values
array<string|int, mixed>

resolveWorkspacesPublishDependencies()

Resolves workspaces related dependencies for swapping/publishing of the command map.

protected resolveWorkspacesPublishDependencies(array<string|int, mixed> $commandMap, int $workspace) : array<string|int, mixed>

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<string|int, mixed>
$workspace : int
Return values
array<string|int, mixed>

resolveWorkspacesSetStageDependencies()

Resolves workspaces related dependencies for staging of the command map.

protected resolveWorkspacesSetStageDependencies(array<string|int, mixed> $commandMap, int $workspace) : array<string|int, mixed>

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<string|int, mixed>
$workspace : int
Return values
array<string|int, mixed>

transformDependentElementsToUseLiveId()

Transforms dependent elements to use the liveId as array key.

protected transformDependentElementsToUseLiveId(array<string|int, ElementEntity$elements) : array<string|int, mixed>
Parameters
$elements : array<string|int, ElementEntity>
Return values
array<string|int, mixed>

        
On this page

Search results