LSFileHelper
extends CFileHelper
in package
Table of Contents
Methods
- getExtensionByMimeType() : string|null
- getMimeType() : string|null
Methods
getExtensionByMimeType()
public
static getExtensionByMimeType(mixed $file[, mixed $magicFile = null ]) : string|null
Parameters
- $file : mixed
- $magicFile : mixed = null
Tags
Return values
string|null —extension name. Null is returned if the extension cannot be determined.
getMimeType()
public
static getMimeType(mixed $file[, mixed $magicFile = null ][, mixed $checkExtension = true ]) : string|null
Parameters
- $file : mixed
- $magicFile : mixed = null
- $checkExtension : mixed = true
Tags
Return values
string|null —string if the MIME type. Null is returned if the MIME type cannot be determined.