eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\Relation\RelationStorage Class Reference

Converter for Relation field type external storage. More...

+ Inheritance diagram for eZ\Publish\Core\FieldType\Relation\RelationStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Relation\RelationStorage:

Public Member Functions

 deleteFieldData (VersionInfo $versionInfo, array $fieldIds, array $context)
 
 getFieldData (VersionInfo $versionInfo, Field $field, array $context)
 Populates $field value property based on the external data. More...
 
 getIndexData (VersionInfo $versionInfo, Field $field, array $context)
 
 hasFieldData ()
 Checks if field type has external data to deal with. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field, array $context)
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\GatewayBasedStorage
 __construct (array $gateways)
 Construct from gateways. More...
 
 addGateway ($identifier, StorageGateway $gateway)
 Adds a storage $gateway assigned to the given $identifier. More...
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\Core\FieldType\GatewayBasedStorage
 getGateway (array $context)
 Retrieve the fitting gateway, base on the identifier in $context. More...
 
- Protected Attributes inherited from eZ\Publish\Core\FieldType\GatewayBasedStorage
 $gateways
 

Detailed Description

Converter for Relation field type external storage.

Todo:
introduce persistence layer (gateways)

Member Function Documentation

eZ\Publish\Core\FieldType\Relation\RelationStorage::deleteFieldData ( VersionInfo  $versionInfo,
array  $fieldIds,
array  $context 
)
Parameters
VersionInfo$versionInfo
array$fieldId
array$context
Returns
boolean

Implements eZ\Publish\SPI\FieldType\FieldStorage.

eZ\Publish\Core\FieldType\Relation\RelationStorage::getFieldData ( VersionInfo  $versionInfo,
Field  $field,
array  $context 
)

Populates $field value property based on the external data.

We don't need to query storage for this, as identical data is stored in data & externalData

Parameters
\eZ\Publish\SPI\Persistence\Content\Field$field
array$context
Returns
void

Implements eZ\Publish\SPI\FieldType\FieldStorage.

eZ\Publish\Core\FieldType\Relation\RelationStorage::getIndexData ( VersionInfo  $versionInfo,
Field  $field,
array  $context 
)
Parameters
\eZ\Publish\SPI\Persistence\Content\Field$field
array$context

Implements eZ\Publish\SPI\FieldType\FieldStorage.

eZ\Publish\Core\FieldType\Relation\RelationStorage::hasFieldData ( )

Checks if field type has external data to deal with.

Returns
boolean

Implements eZ\Publish\SPI\FieldType\FieldStorage.

eZ\Publish\Core\FieldType\Relation\RelationStorage::storeFieldData ( VersionInfo  $versionInfo,
Field  $field,
array  $context 
)

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