eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler Class Reference

Handler for external storages. More...

Public Member Functions

 __construct (StorageRegistry $storageRegistry, array $context)
 Creates a new storage handler. More...
 
 copyFieldData (VersionInfo $versionInfo, Field $field, Field $originalField)
 
 deleteFieldData ($fieldType, VersionInfo $versionInfo, array $ids)
 Deletes data for field $ids from external storage of $fieldType. More...
 
 getFieldData (VersionInfo $versionInfo, Field $field)
 Fetches external data for $field from its corresponding external storage. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field)
 Stores data from $field in its corresponding external storage. More...
 

Protected Attributes

 $context
 
 $storageRegistry
 

Detailed Description

Handler for external storages.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::__construct ( StorageRegistry  $storageRegistry,
array  $context 
)

Creates a new storage handler.

Parameters
StorageRegistry$storageRegistry
array$context

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::copyFieldData ( VersionInfo  $versionInfo,
Field  $field,
Field  $originalField 
)
Parameters
\eZ\Publish\SPI\Persistence\Content\VersionInfo$versionInfo
\eZ\Publish\SPI\Persistence\Content\Field$field
\eZ\Publish\SPI\Persistence\Content\Field$originalField
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::deleteFieldData (   $fieldType,
VersionInfo  $versionInfo,
array  $ids 
)

Deletes data for field $ids from external storage of $fieldType.

Parameters
string$fieldType
\eZ\Publish\SPI\Persistence\Content\VersionInfo$versionInfo
mixed[]$ids
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::getFieldData ( VersionInfo  $versionInfo,
Field  $field 
)

Fetches external data for $field from its corresponding external storage.

Parameters
\eZ\Publish\SPI\Persistence\Content\VersionInfo$versionInfo
Field$field
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::storeFieldData ( VersionInfo  $versionInfo,
Field  $field 
)

Stores data from $field in its corresponding external storage.

Parameters
\eZ\Publish\SPI\Persistence\Content\VersionInfo$versionInfo
Field$field
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::$context
protected
eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler::$storageRegistry
protected

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