eZPublishCommunityProject  2012.12
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter Interface Reference

Converter for field values in legacy storage. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter:

Public Member Functions

 getIndexColumn ()
 Returns the name of the index column in the attribute table. More...
 
 toFieldDefinition (StorageFieldDefinition $storageDef, FieldDefinition $fieldDef)
 Converts field definition data in $storageDef into $fieldDef. More...
 
 toFieldValue (StorageFieldValue $value, FieldValue $fieldValue)
 Converts data from $value to $fieldValue. More...
 
 toStorageFieldDefinition (FieldDefinition $fieldDef, StorageFieldDefinition $storageDef)
 Converts field definition data in $fieldDef into $storageFieldDef. More...
 
 toStorageValue (FieldValue $value, StorageFieldValue $storageFieldValue)
 Converts data from $value to $storageFieldValue. More...
 

Detailed Description

Converter for field values in legacy storage.

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter::getIndexColumn ( )

Returns the name of the index column in the attribute table.

Returns the name of the index column the datatype uses, which is either "sort_key_int" or "sort_key_string". This column is then used for filtering and sorting for this type.

Returns
string

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Selection, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLine, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlText, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Page, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Country, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Relation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\BinaryFile, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextBlock, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Url, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Null, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\EmailAddress, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Checkbox, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Author, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MapLocation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Rating, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Keyword.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter::toFieldDefinition ( StorageFieldDefinition  $storageDef,
FieldDefinition  $fieldDef 
)

Converts field definition data in $storageDef into $fieldDef.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition$storageDef
\eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition$fieldDef

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Selection, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLine, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Page, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Country, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Relation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Url, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlText, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Null, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextBlock, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\EmailAddress, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Checkbox, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Author, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\BinaryFile, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MapLocation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Rating, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Keyword, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Media.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter::toFieldValue ( StorageFieldValue  $value,
FieldValue  $fieldValue 
)

Converts data from $value to $fieldValue.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue$value
\eZ\Publish\SPI\Persistence\Content\FieldValue$fieldValue

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Page, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Url, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Null, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\EmailAddress, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Relation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLine, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlText, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Country, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MapLocation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Selection, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextBlock, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Author, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Checkbox, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\BinaryFile, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Rating, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Keyword.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter::toStorageFieldDefinition ( FieldDefinition  $fieldDef,
StorageFieldDefinition  $storageDef 
)

Converts field definition data in $fieldDef into $storageFieldDef.

Parameters
\eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition$fieldDef
\eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition$storageDef

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Page, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Selection, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Url, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Relation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Null, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlText, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\EmailAddress, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLine, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Country, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextBlock, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Checkbox, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Author, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MapLocation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Rating, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\BinaryFile, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Keyword, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Media.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter::toStorageValue ( FieldValue  $value,
StorageFieldValue  $storageFieldValue 
)

Converts data from $value to $storageFieldValue.

Parameters
\eZ\Publish\SPI\Persistence\Content\FieldValue$value
\eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue$storageFieldValue

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Page, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Null, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\XmlText, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\EmailAddress, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Selection, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextLine, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Author, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\BinaryFile, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Country, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Relation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\TextBlock, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Checkbox, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Keyword, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\MapLocation, eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Rating, and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Url.


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