PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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