Class

eZ\Publish\Core\IO\IOMetadataHandler\Flysystem

class Flysystem implements IOMetadataHandler

Methods

__construct(FilesystemInterface $filesystem)

BinaryFile create(BinaryFileCreateStruct $spiBinaryFileCreateStruct)

Only reads & return metadata, since the binarydata handler took care of creating the file already.

delete($spiBinaryFileId $spiBinaryFileId)

Does really nothing, the binary data handler takes care of it.

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)

Does nothing, as the binarydata handler takes care of it.

Details

at line 24
public __construct(FilesystemInterface $filesystem)

Parameters

FilesystemInterface $filesystem

at line 34
public BinaryFile create(BinaryFileCreateStruct $spiBinaryFileCreateStruct)

Only reads & return metadata, since the binarydata handler took care of creating the file already.

Parameters

BinaryFileCreateStruct $spiBinaryFileCreateStruct

Return Value

BinaryFile

Exceptions

BinaryFileNotFoundException

at line 44
public delete($spiBinaryFileId $spiBinaryFileId)

Does really nothing, the binary data handler takes care of it.

Parameters

$spiBinaryFileId $spiBinaryFileId

at line 48
public BinaryFile load($spiBinaryFileId)

Loads and returns metadata for $path.

Parameters

$spiBinaryFileId

Return Value

BinaryFile

at line 67
public bool exists($spiBinaryFileId)

Checks if a file $path exists.

Parameters

$spiBinaryFileId

Return Value

bool

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

Returns the file's mimetype.

Example: text/plain.

Parameters

$spiBinaryFileId $spiBinaryFileId

Return Value

string

at line 80
public deleteDirectory($spiPath)

Does nothing, as the binarydata handler takes care of it.

Parameters

$spiPath