Interfaces, Classes and Traits
- MimeTypeDetector
- ExtensionLookup
Table of Contents
-
$extensions
: ExtensionToMimeTypeMap
-
__construct()
: mixed
-
detectMimeType()
: string|null
-
detectMimeTypeFromBuffer()
: string|null
-
detectMimeTypeFromFile()
: string|null
-
detectMimeTypeFromPath()
: string|null
-
lookupAllExtensions()
: array<string|int, string>
-
lookupExtension()
: string|null
__construct()
public
__construct([ExtensionToMimeTypeMap $extensions = null ]) : mixed
Parameters
-
$extensions
: ExtensionToMimeTypeMap
= null
-
Return values
mixed
—
detectMimeType()
public
detectMimeType(string $path, mixed $contents) : string|null
Parameters
-
$path
: string
-
-
$contents
: mixed
-
Return values
string|null
—
detectMimeTypeFromBuffer()
public
detectMimeTypeFromBuffer(string $contents) : string|null
Parameters
-
$contents
: string
-
Return values
string|null
—
detectMimeTypeFromFile()
public
detectMimeTypeFromFile(string $path) : string|null
Parameters
-
$path
: string
-
Return values
string|null
—
detectMimeTypeFromPath()
public
detectMimeTypeFromPath(string $path) : string|null
Parameters
-
$path
: string
-
Return values
string|null
—
lookupAllExtensions()
public
lookupAllExtensions(string $mimetype) : array<string|int, string>
Parameters
-
$mimetype
: string
-
Return values
array<string|int, string>
—
lookupExtension()
public
lookupExtension(string $mimetype) : string|null
Parameters
-
$mimetype
: string
-
Return values
string|null
—