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

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

Protected Properties

Property Type Description
$contentTypeGateway eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway

Public Methods

Method Description
__construct ( Gateway $contentTypeGateway ) 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 method

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

deleteOldType() public method

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 method

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 method

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 property

protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Type $contentTypeGateway
return eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway