eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Date Class Reference

Date field value converter class. More...

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

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

Detailed Description

Date field value converter class.

Member Function Documentation

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

Factory for current class.

Note
Class should instead be configured as service if it gains dependencies.
Returns
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Date::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\Date::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\Date::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\Date::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\Date::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: