Class

eZ\Publish\Core\IO\MimeTypeDetector\FileInfo

class FileInfo implements MimeTypeDetector

Methods

__construct()

Checks for the required ext/fileinfo.

string getFromPath(string $path)

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

string getFromBuffer($path)

Returns the MIME type of the data in $buffer.

Details

at line 25
public __construct()

Checks for the required ext/fileinfo.

at line 34
public string getFromPath(string $path)

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

Parameters

string $path

Return Value

string

at line 39
public string getFromBuffer($path)

Returns the MIME type of the data in $buffer.

Parameters

$path

Return Value

string