Class

eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler

class StorageHandler

Handler for external storages.

Methods

__construct(StorageRegistry $storageRegistry, array $context)

Creates a new storage handler.

storeFieldData(VersionInfo $versionInfo, Field $field)

Stores data from $field in its corresponding external storage.

copyFieldData(VersionInfo $versionInfo, Field $field, Field $originalField)

getFieldData(VersionInfo $versionInfo, Field $field)

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

deleteFieldData(string $fieldType, VersionInfo $versionInfo, array $ids)

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

Details

at line 39
public __construct(StorageRegistry $storageRegistry, array $context)

Creates a new storage handler.

Parameters

StorageRegistry $storageRegistry
array $context

at line 51
public storeFieldData(VersionInfo $versionInfo, Field $field)

Stores data from $field in its corresponding external storage.

Parameters

VersionInfo $versionInfo
Field $field

at line 65
public copyFieldData(VersionInfo $versionInfo, Field $field, Field $originalField)

Parameters

VersionInfo $versionInfo
Field $field
Field $originalField

at line 81
public getFieldData(VersionInfo $versionInfo, Field $field)

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

Parameters

VersionInfo $versionInfo
Field $field

at line 96
public deleteFieldData(string $fieldType, VersionInfo $versionInfo, array $ids)

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

Parameters

string $fieldType
VersionInfo $versionInfo
array $ids