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

Public Member Functions

 __construct (EzcDbHandler $db)
 Create instance of RelationList converter. More...
 
 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...
 
 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...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter
 toFieldValue (StorageFieldValue $value, FieldValue $fieldValue)
 Converts data from $value to $fieldValue. More...
 

Private Member Functions

 getRelationXmlHashFromDB (array $destinationContentIds)
 

Static Private Member Functions

static dbAttributeMap ()
 

Private Attributes

 $db
 

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList::__construct ( EzcDbHandler  $db)

Create instance of RelationList converter.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$db

Member Function Documentation

static eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList::dbAttributeMap ( )
staticprivate
Returns
array
eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList::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
boolean

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

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList::getRelationXmlHashFromDB ( array  $destinationContentIds)
private
Parameters
mixed[]$destinationContentIds
Exceptions
\Exception
Returns
array

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

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

Converts field definition data in $storageDef into $fieldDef.

<?xml version="1.0" encoding="utf-8"?> <related-objects> <constraints> <allowed-class contentclass-identifier="blog_post"/> </constraints> <type value="2"> <selection_type value="1"> <object_class value=""> <contentobject-placement node-id="67"/> </related-objects>

<?xml version="1.0" encoding="utf-8"?> <related-objects> <constraints> <type value="2"> <selection_type value="0"> <object_class value=""> <contentobject-placement/> </related-objects>

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\RelationList::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\RelationList::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

eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\RelationList::$db
private

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