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

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

Public Attributes

const FLOAT_VALIDATOR_IDENTIFIER = "FloatValueValidator"
 
const HAS_MAX_VALUE = 2
 
const HAS_MIN_VALUE = 1
 
const NO_MIN_MAX_VALUE = 0
 

Private Member Functions

 getStorageDefValidatorState ($minValue, $maxValue)
 Returns validator state for storage definition. More...
 

Member Function Documentation

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

Factory for current class.

Note
Class should instead be configured as service if it gains dependencies.
Returns
Float
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float::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\Float::getStorageDefValidatorState (   $minValue,
  $maxValue 
)
private

Returns validator state for storage definition.

Validator state is a bitfield value composed of:

Parameters
int | null$minValueMinimum int value, or null if not set
int | null$maxValueMaximum int value, or null if not set
Returns
int

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float\toStorageFieldDefinition().

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

Member Data Documentation

const eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float::FLOAT_VALIDATOR_IDENTIFIER = "FloatValueValidator"
const eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float::HAS_MAX_VALUE = 2
const eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float::HAS_MIN_VALUE = 1
const eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Float::NO_MIN_MAX_VALUE = 0

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