PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\RemoveField

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

Protected Properties

Property Type Description
$contentMapper eZ\Publish\Core\Persistence\Legacy\Content\Mapper
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition Field definition of the field to remove.
$storageHandler eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler Storage handler.

Public Methods

Method Description
__construct ( Gateway $contentGateway, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageHandler $storageHandler, Mapper $contentMapper ) Creates a new action.
apply ( integer $contentId ) Applies the action to the given $content.

Method Details

__construct() public method

Creates a new action.
public __construct ( Gateway $contentGateway, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageHandler $storageHandler, Mapper $contentMapper )
$contentGateway eZ\Publish\Core\Persistence\Legacy\Content\Gateway
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$storageHandler eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler
$contentMapper eZ\Publish\Core\Persistence\Legacy\Content\Mapper

apply() public method

Applies the action to the given $content.
public apply ( integer $contentId )
$contentId integer

Property Details

$contentMapper protected property

protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapper
return eZ\Publish\Core\Persistence\Legacy\Content\Mapper

$fieldDefinition protected property

Field definition of the field to remove.
protected FieldDefinition,eZ\Publish\SPI\Persistence\Content\Type $fieldDefinition
return eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

$storageHandler protected property

Storage handler.
protected StorageHandler,eZ\Publish\Core\Persistence\Legacy\Content $storageHandler
return eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler