Class: I2CE MimeTypes

From IHRIS Wiki
Revision as of 09:51, 10 November 2009 by Litlfred (talk | contribs)

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