Class

eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway

abstract class Gateway extends StorageGateway

Methods

storeFileReference(VersionInfo $versionInfo, Field $field)

Stores the file reference in $field for $versionNo.

array|void getFileReferenceData(mixed $fieldId, int $versionNo)

Returns the file reference data for the given $fieldId in $versionNo.

removeFileReferences(array $fieldIds, int $versionNo)

Removes all file references for the given $fieldIds.

removeFileReference(mixed $fieldId, int $versionNo)

Removes a specific file reference for $fieldId and $versionId.

array getReferencedFiles(array $fieldIds, int $versionNo)

Returns a map of files referenced by the given $fieldIds.

array countFileReferences(array $files)

Returns a map with the number of references each file from $files has.

Details

at line 23
abstract public storeFileReference(VersionInfo $versionInfo, Field $field)

Stores the file reference in $field for $versionNo.

Parameters

VersionInfo $versionInfo
Field $field

at line 33
abstract public array|void getFileReferenceData(mixed $fieldId, int $versionNo)

Returns the file reference data for the given $fieldId in $versionNo.

Parameters

mixed $fieldId
int $versionNo

Return Value

array|void

at line 41
abstract public removeFileReferences(array $fieldIds, int $versionNo)

Removes all file references for the given $fieldIds.

Parameters

array $fieldIds
int $versionNo

at line 49
abstract public removeFileReference(mixed $fieldId, int $versionNo)

Removes a specific file reference for $fieldId and $versionId.

Parameters

mixed $fieldId
int $versionNo

at line 59
abstract public array getReferencedFiles(array $fieldIds, int $versionNo)

Returns a map of files referenced by the given $fieldIds.

Parameters

array $fieldIds
int $versionNo

Return Value

array

at line 68
abstract public array countFileReferences(array $files)

Returns a map with the number of references each file from $files has.

Parameters

array $files

Return Value

array