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

Inheritance: extends eZ\Publish\Core\FieldType\StorageGateway
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
countFileReferences ( array $files ) : array Returns a map with the number of references each file from $files has.
getFileReferenceData ( mixed $fieldId, integer $versionNo ) : array | void Returns the file reference data for the given $fieldId in $versionNo.
getReferencedFiles ( array $fieldIds, integer $versionNo ) : array Returns a map of files referenced by the given $fieldIds.
removeFileReference ( mixed $fieldId, integer $versionNo ) Removes a specific file reference for $fieldId and $versionId.
removeFileReferences ( array $fieldIds, integer $versionNo ) Removes all file references for the given $fieldIds.
storeFileReference ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field ) Stores the file reference in $field for $versionNo.

Method Details

countFileReferences() abstract public method

Returns a map with the number of references each file from $files has.
abstract public countFileReferences ( array $files ) : array
$files array
return array

getFileReferenceData() abstract public method

Returns the file reference data for the given $fieldId in $versionNo.
abstract public getFileReferenceData ( mixed $fieldId, integer $versionNo ) : array | void
$fieldId mixed
$versionNo integer
return array | void

getReferencedFiles() abstract public method

Returns a map of files referenced by the given $fieldIds.
abstract public getReferencedFiles ( array $fieldIds, integer $versionNo ) : array
$fieldIds array
$versionNo integer
return array

removeFileReference() abstract public method

Removes a specific file reference for $fieldId and $versionId.
abstract public removeFileReference ( mixed $fieldId, integer $versionNo )
$fieldId mixed
$versionNo integer

removeFileReferences() abstract public method

Removes all file references for the given $fieldIds.
abstract public removeFileReferences ( array $fieldIds, integer $versionNo )
$fieldIds array
$versionNo integer

storeFileReference() abstract public method

Stores the file reference in $field for $versionNo.
abstract public storeFileReference ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field