Class

eZ\Publish\Core\FieldType\BinaryFile\BinaryFileStorage\Gateway\LegacyStorage

class LegacyStorage extends LegacyStorage

Methods

__construct(DatabaseHandler $dbHandler)

from LegacyStorage
bool storeFileReference(VersionInfo $versionInfo, Field $field)

Stores the file reference in $field for $versionNo.

from LegacyStorage
string removeMimeFromPath(string $path)

Removes the prepended mime-type directory from $path for legacy storage.

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

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

from LegacyStorage
string prependMimeToPath(string $path, string $mimeType)

Prepends $path with the first part of the given $mimeType.

from LegacyStorage
removeFileReferences(array $fieldIds, int $versionNo)

Removes all file references for the given $fieldIds.

from LegacyStorage
removeFileReference(mixed $fieldId, int $versionNo)

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

from LegacyStorage
array getReferencedFiles(array $fieldIds, int $versionNo)

Returns a set o file references, referenced by the given $fieldIds.

from LegacyStorage
array countFileReferences(array $files)

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

from LegacyStorage

Details

in LegacyStorage at line 28
public __construct(DatabaseHandler $dbHandler)

Parameters

DatabaseHandler $dbHandler

in LegacyStorage at line 141
public bool storeFileReference(VersionInfo $versionInfo, Field $field)

Stores the file reference in $field for $versionNo.

Parameters

VersionInfo $versionInfo
Field $field

Return Value

bool

in LegacyStorage at line 164
public string removeMimeFromPath(string $path)

Removes the prepended mime-type directory from $path for legacy storage.

Parameters

string $path

Return Value

string

in LegacyStorage at line 179
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

in LegacyStorage at line 261
public string prependMimeToPath(string $path, string $mimeType)

Prepends $path with the first part of the given $mimeType.

Parameters

string $path
string $mimeType

Return Value

string

in LegacyStorage at line 273
public removeFileReferences(array $fieldIds, int $versionNo)

Removes all file references for the given $fieldIds.

Parameters

array $fieldIds
int $versionNo

in LegacyStorage at line 306
public removeFileReference(mixed $fieldId, int $versionNo)

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

Parameters

mixed $fieldId
int $versionNo

in LegacyStorage at line 336
public array getReferencedFiles(array $fieldIds, int $versionNo)

Returns a set o file references, referenced by the given $fieldIds.

Parameters

array $fieldIds
int $versionNo

Return Value

array

in LegacyStorage at line 383
public array countFileReferences(array $files)

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

Parameters

array $files

Return Value

array