Class: I2CE MimeTypes (4.1.7)

From IHRIS Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This article describes the class I2CE_MimeTypes .

class that will handle trying to figure out mime types in various ways.

Variables

$finfo

protected static @var finfo $finfo. See http://us2.php.net/fileinfo

$extToMimeTypes

protected static @var array $extToMimeTypes an array with keys file extensions and values mime types

Methods

extToMimeType()

Given a file extension, it determine the mime-type

loadMimeTypes()

Loads in the file containing mime types and extensions

magicMimeType()

Tries to determine the file type magically

mimeTypeToExt()

Get a file extension for the associated mime type