Class

eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

class ContentUpdater

Class to update content objects to a new type version.

Methods

__construct(Gateway $contentGateway, ConverterRegistry $converterRegistry, StorageHandler $storageHandler, Mapper $contentMapper)

Creates a new content updater.

Action[] determineActions(Type $fromType, Type $toType)

Determines the necessary update actions.

applyUpdates(mixed $contentTypeId, array $actions)

Applies all given updates.

Details

at line 57
public __construct(Gateway $contentGateway, ConverterRegistry $converterRegistry, StorageHandler $storageHandler, Mapper $contentMapper)

Creates a new content updater.

Parameters

Gateway $contentGateway
ConverterRegistry $converterRegistry
StorageHandler $storageHandler
Mapper $contentMapper

at line 78
public Action[] determineActions(Type $fromType, Type $toType)

Determines the necessary update actions.

Parameters

Type $fromType
Type $toType

Return Value

Action[]

at line 133
public applyUpdates(mixed $contentTypeId, array $actions)

Applies all given updates.

Parameters

mixed $contentTypeId
array $actions