Class: I2CE MimeTypes (4.1.7)

From IHRIS Wiki
(Redirected from Class: I2CE MimeTypes)


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