Interface

eZ\Publish\SPI\IO\MimeTypeDetector

interface MimeTypeDetector

Methods

string getFromPath(string $path)

Returns the MIME type of the file identified by $path.

string getFromBuffer(string $buffer)

Returns the MIME type of the data in $buffer.

Details

at line 20
public string getFromPath(string $path)

Returns the MIME type of the file identified by $path.

Parameters

string $path

Return Value

string

at line 29
public string getFromBuffer(string $buffer)

Returns the MIME type of the data in $buffer.

Parameters

string $buffer

Return Value

string