Class: I2CE MimeTypes (4.1.7)

From IHRIS Wiki
Revision as of 09:42, 23 August 2013 by Litlfred (talk | contribs) (Created page with "{{otherversions|Class: I2CE_MimeTypes}} This article describes the class ''I2CE_MimeTypes'' . *Location: Part of the module MimeTypes in th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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