MediaWiki
REL1_31
|
Static Public Member Functions | |
static | singleton () |
Get an instance of this class. More... | |
Additional Inherited Members | |
![]() | |
__construct (array $params) | |
addExtraInfo ( $info) | |
Adds to the list mapping MIME to media type. More... | |
addExtraTypes ( $types) | |
Adds to the list mapping MIME to file extensions. More... | |
detectZipType ( $header, $tail=null, $ext=false) | |
Detect application-specific file type of a given ZIP file from its header data. More... | |
findMediaType ( $extMime) | |
Returns a media code matching the given MIME type or file extension. More... | |
getExtensionsForType ( $mime) | |
Returns a list of file extensions for a given MIME type as a space separated string or null if the MIME type was unrecognized. More... | |
getIEMimeTypes ( $fileName, $chunk, $proposed) | |
Get the MIME types that various versions of Internet Explorer would detect from a chunk of the content. More... | |
getMediaType ( $path=null, $mime=null) | |
Determine the media type code for a file, using its MIME type, name and possibly its contents. More... | |
getMediaTypes () | |
Returns an array of media types (MEDIATYPE_xxx constants) More... | |
getTypesForExtension ( $ext) | |
Returns a list of MIME types for a given file extension as a space separated string or null if the extension was unrecognized. More... | |
guessMimeType ( $file, $ext=true) | |
MIME type detection. More... | |
guessTypesForExtension ( $ext) | |
Returns a single MIME type for a given file extension or null if unknown. More... | |
improveTypeFromExtension ( $mime, $ext) | |
Improves a MIME type using the file extension. More... | |
isMatchingExtension ( $extension, $mime) | |
Tests if the extension matches the given MIME type. More... | |
isPHPImageType ( $mime) | |
Returns true if the MIME type is known to represent an image format supported by the PHP GD library. More... | |
isRecognizableExtension ( $extension) | |
Returns true if the extension represents a type which can be reliably detected from its content. More... | |
setLogger (LoggerInterface $logger) | |
![]() | |
array | $mExtToMime = null |
Map of file extensions types to MIME types (as a space separated list) More... | |
![]() | |
getIEContentAnalyzer () | |
Get a cached instance of IEContentAnalyzer. More... | |
loadFiles () | |
![]() | |
callable | $detectCallback |
callable | $extCallback |
callable | $guessCallback |
IEContentAnalyzer | $IEAnalyzer |
string | $infoFile |
callable | $initCallback |
array | $mediaTypes = null |
Mapping of media types to arrays of MIME types. More... | |
array | $mimetoExt = null |
Map of MIME types to file extensions (as a space separated list) More... | |
array | $mimeTypeAliases = null |
Map of MIME type aliases. More... | |
string | $typeFile |
string | $xmlTypes |
![]() | |
static | $wellKnownInfo = |
Defines a set of well known MIME info entries This is used as a fallback to mime.info files. More... | |
static | $wellKnownTypes = |
Defines a set of well known MIME types This is used as a fallback to mime.types files. More... | |
Definition at line 27 of file MimeMagic.php.
|
static |
Get an instance of this class.
Definition at line 33 of file MimeMagic.php.
References class, and wfDeprecated().