eZPublishCommunityProject  2012.12
eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField Class Reference

Action to add a field to content objects. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField:

Public Member Functions

 __construct (Gateway $contentGateway, FieldDefinition $fieldDef, Converter $converter, StorageHandler $storageHandler)
 Creates a new action. More...
 
 apply (Content $content)
 Applies the action to the given $content. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action
 __construct (ContentGateway $contentGateway)
 Creates a new action. More...
 
 apply (Content $content)
 Applies the action to the given $content. More...
 

Protected Member Functions

 createField (Content $content)
 

Protected Attributes

 $fieldDefinition
 
 $fieldValueConverter
 
 $storageHandler
 
- Protected Attributes inherited from eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action
 $contentGateway
 

Detailed Description

Action to add a field to content objects.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::__construct ( Gateway  $contentGateway,
FieldDefinition  $fieldDef,
Converter  $converter,
StorageHandler  $storageHandler 
)

Creates a new action.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Gateway$contentGateway
\eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition$fieldDef
\eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter$converter
\eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler$storageHandler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::apply ( Content  $content)

Applies the action to the given $content.

Parameters
Content$content
Todo:
Handle external field data
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::createField ( Content  $content)
protected
Parameters
\eZ\Publish\SPI\Persistence\Content$content
Returns
Todo:
Handle ->languageCode

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField\apply().

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::$fieldDefinition
protected
eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::$fieldValueConverter
protected
eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater\Action\AddField::$storageHandler
protected

The documentation for this class was generated from the following file: