MimeType
FinalYes
Table of Contents
Methods
- getByContent() : mixed
- getByFileExtension() : mixed
- getByFilename() : mixed
- getByFilePath() : mixed
- getExtensionByMimeType() : string|null
- getMimeTypeList() : mixed
- isImage() : mixed
- normalize() : mixed
Methods
getByContent()
public
static getByContent(mixed $content) : mixed
Parameters
- $content : mixed
getByFileExtension()
public
static getByFileExtension(mixed $extension) : mixed
Parameters
- $extension : mixed
getByFilename()
public
static getByFilename(mixed $filename) : mixed
Parameters
- $filename : mixed
getByFilePath()
public
static getByFilePath(mixed $filePath) : mixed
Parameters
- $filePath : mixed
getExtensionByMimeType()
public
static getExtensionByMimeType(string $mimeType) : string|null
Parameters
- $mimeType : string
Return values
string|nullgetMimeTypeList()
public
static getMimeTypeList() : mixed
isImage()
public
static isImage(mixed $mime) : mixed
Parameters
- $mime : mixed
normalize()
public
static normalize(mixed $contentType) : mixed
Parameters
- $contentType : mixed