PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\DoctrineDatabase

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$contentTypeGateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway
$contentUpdater eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater Content updater.

Méthodes publiques

Méthode Description
__construct ( Gateway $contentTypeGateway, ContentUpdater $contentUpdater ) Creates a new content type update handler.
deleteOldType ( eZ\Publish\SPI\Persistence\Content\Type $fromType ) Deletes $fromType and all of its field definitions.
publishNewType ( eZ\Publish\SPI\Persistence\Content\Type $toType, integer $newStatus ) Publishes $toType to $newStatus.
updateContentObjects ( eZ\Publish\SPI\Persistence\Content\Type $fromType, eZ\Publish\SPI\Persistence\Content\Type $toType ) Updates existing content objects from $fromType to $toType.

Method Details

__construct() public méthode

Creates a new content type update handler.
public __construct ( Gateway $contentTypeGateway, ContentUpdater $contentUpdater )
$contentTypeGateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway
$contentUpdater eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater

deleteOldType() public méthode

Deletes $fromType and all of its field definitions.
public deleteOldType ( eZ\Publish\SPI\Persistence\Content\Type $fromType )
$fromType eZ\Publish\SPI\Persistence\Content\Type

publishNewType() public méthode

Publishes $toType to $newStatus.
public publishNewType ( eZ\Publish\SPI\Persistence\Content\Type $toType, integer $newStatus )
$toType eZ\Publish\SPI\Persistence\Content\Type
$newStatus integer

updateContentObjects() public méthode

Updates existing content objects from $fromType to $toType.
public updateContentObjects ( eZ\Publish\SPI\Persistence\Content\Type $fromType, eZ\Publish\SPI\Persistence\Content\Type $toType )
$fromType eZ\Publish\SPI\Persistence\Content\Type
$toType eZ\Publish\SPI\Persistence\Content\Type

Property Details

$contentTypeGateway protected_oe property

protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentTypeGateway
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

$contentUpdater protected_oe property

Content updater.
protected ContentUpdater,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentUpdater
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater