Interface

eZ\Publish\Core\IO\IOMetadataHandler

interface IOMetadataHandler

Provides reading & writing of files meta data (size, modification time...).

Methods

BinaryFile create(BinaryFileCreateStruct $spiBinaryFileCreateStruct)

Stores the file from $binaryFileCreateStruct.

delete($spiBinaryFileId)

Deletes file $path.

BinaryFile load($spiBinaryFileId)

Loads and returns metadata for $path.

bool exists($spiBinaryFileId)

Checks if a file $path exists.

string getMimeType($spiBinaryFileId $spiBinaryFileId)

Returns the file's mimetype.

deleteDirectory($spiPath)

Details

at line 28
public BinaryFile create(BinaryFileCreateStruct $spiBinaryFileCreateStruct)

Stores the file from $binaryFileCreateStruct.

Parameters

BinaryFileCreateStruct $spiBinaryFileCreateStruct

Return Value

BinaryFile

Exceptions

RuntimeException if an error occured creating the file

at line 37
public delete($spiBinaryFileId)

Deletes file $path.

Parameters

$spiBinaryFileId

Exceptions

NotFoundException If $path is not found

at line 46
public BinaryFile load($spiBinaryFileId)

Loads and returns metadata for $path.

Parameters

$spiBinaryFileId

Return Value

BinaryFile

at line 55
public bool exists($spiBinaryFileId)

Checks if a file $path exists.

Parameters

$spiBinaryFileId

Return Value

bool

at line 64
public string getMimeType($spiBinaryFileId $spiBinaryFileId)

Returns the file's mimetype.

Example: text/plain.

Parameters

$spiBinaryFileId $spiBinaryFileId

Return Value

string

at line 66
public deleteDirectory($spiPath)

Parameters

$spiPath