Property | Type | Description | |
---|---|---|---|
$contentMapper | |||
$fieldDefinition | eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition | Field definition of the field to add. | |
$fieldValueConverter | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter | Field value converter. | |
$storageHandler | Storage handler. |
Method | Description | |
---|---|---|
__construct ( |
Creates a new action. | |
apply ( integer $contentId ) | Applies the action to the given $content. |
Method | Description | |
---|---|---|
createField ( null | integer $id, integer $versionNo, string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Field | Creates new Field value object, setting given parameters and default value for a field definition the action is constructed for. | |
insertField ( eZ\Publish\SPI\Persistence\Content $content, eZ\Publish\SPI\Persistence\Content\Field $field ) : integer | Inserts given $field to the internal and external storage. |
public __construct ( |
||
$contentGateway | ||
$fieldDef | eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition | |
$converter | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter | |
$storageHandler | ||
$contentMapper |
protected insertField ( eZ\Publish\SPI\Persistence\Content $content, eZ\Publish\SPI\Persistence\Content\Field $field ) : integer | ||
$content | eZ\Publish\SPI\Persistence\Content | |
$field | eZ\Publish\SPI\Persistence\Content\Field | |
return | integer | The ID of the field that was inserted |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapper | ||
return |
protected FieldDefinition,eZ\Publish\SPI\Persistence\Content\Type $fieldDefinition | ||
return | eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition |
protected Converter,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $fieldValueConverter | ||
return | eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter |