PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$contentGateway eZ\Publish\Core\Persistence\Legacy\Content\Gateway Content gateway.
$contentMapper eZ\Publish\Core\Persistence\Legacy\Content\Mapper
$converterRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry FieldValue converter registry.
$storageHandler eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler Storage handler.

Открытые методы

Метод Описание
__construct ( Gateway $contentGateway, ConverterRegistry $converterRegistry, StorageHandler $storageHandler, Mapper $contentMapper ) Creates a new content updater.
applyUpdates ( mixed $contentTypeId, array $actions ) Applies all given updates.
determineActions ( eZ\Publish\SPI\Persistence\Content\Type $fromType, eZ\Publish\SPI\Persistence\Content\Type $toType ) : Action[] Determines the necessary update actions.

Защищенные методы

Метод Описание
getContentIdsByContentTypeId ( mixed $contentTypeId ) : int[] Returns all content objects of $contentTypeId.
hasFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type $type, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef ) : boolean hasFieldDefinition.

Описание методов

__construct() публичный Метод

Creates a new content updater.
public __construct ( Gateway $contentGateway, ConverterRegistry $converterRegistry, StorageHandler $storageHandler, Mapper $contentMapper )
$contentGateway eZ\Publish\Core\Persistence\Legacy\Content\Gateway
$converterRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry
$storageHandler eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler
$contentMapper eZ\Publish\Core\Persistence\Legacy\Content\Mapper

applyUpdates() публичный Метод

Applies all given updates.
public applyUpdates ( mixed $contentTypeId, array $actions )
$contentTypeId mixed
$actions array

determineActions() публичный Метод

Determines the necessary update actions.
public determineActions ( eZ\Publish\SPI\Persistence\Content\Type $fromType, eZ\Publish\SPI\Persistence\Content\Type $toType ) : Action[]
$fromType eZ\Publish\SPI\Persistence\Content\Type
$toType eZ\Publish\SPI\Persistence\Content\Type
Результат eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action[]

getContentIdsByContentTypeId() защищенный Метод

Returns all content objects of $contentTypeId.
protected getContentIdsByContentTypeId ( mixed $contentTypeId ) : int[]
$contentTypeId mixed
Результат int[]

hasFieldDefinition() защищенный Метод

hasFieldDefinition.
protected hasFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type $type, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef ) : boolean
$type eZ\Publish\SPI\Persistence\Content\Type
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
Результат boolean

Описание свойств

$contentGateway защищенное свойство

Content gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content $contentGateway
Результат eZ\Publish\Core\Persistence\Legacy\Content\Gateway

$contentMapper защищенное свойство

protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapper
Результат eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$converterRegistry защищенное свойство

FieldValue converter registry.
protected ConverterRegistry,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $converterRegistry
Результат eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

$storageHandler защищенное свойство

Storage handler.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $storageHandler
Результат eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler