eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image:

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...
 

Static Public Member Functions

static create ()
 Factory for current class. More...
 

Protected Member Functions

 createEmptyLegacyXml ($contentMetaData)
 Creates an XML considered "empty" by the legacy storage. More...
 
 createLegacyXml (array $data)
 Returns the XML required by the legacy database. More...
 
 fillXml ($imageData, $pathInfo, $timestamp)
 Fill the XML template with the data provided. More...
 
 parseLegacyXml ($xml)
 Parses the XML from the legacy database. More...
 

Member Function Documentation

static eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::create ( )
static

Factory for current class.

Note
Class should instead be configured as service if it gains dependencies.
Returns
Image
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::createEmptyLegacyXml (   $contentMetaData)
protected

Creates an XML considered "empty" by the legacy storage.

Parameters
array$contentMetaData
Returns
string

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image\toStorageValue().

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::createLegacyXml ( array  $data)
protected

Returns the XML required by the legacy database.

Parameters
array$data
Returns
string

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image\toStorageValue().

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::fillXml (   $imageData,
  $pathInfo,
  $timestamp 
)
protected

Fill the XML template with the data provided.

Parameters
array$imageData
array$pathInfo
int$timestamp
Returns
string

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image\createEmptyLegacyXml(), and eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image\createLegacyXml().

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::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

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::parseLegacyXml (   $xml)
protected

Parses the XML from the legacy database.

Returns only the data required by the FieldType, nothing more.

Parameters
string$xml
Returns
array

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image\toFieldValue().

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::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

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::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

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::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

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Image::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

Implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter.


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