Class MOXMAN_Util_Mime

InheritanceMOXMAN_Util_Mime

This class will return mime types for files by extracting the extension and comparing it to a Apache style mime types file.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
get() Returns the mime type of an path by resolving it agains a apache style "mime.types" file. MOXMAN_Util_Mime

Method Details

get() public static method

Returns the mime type of an path by resolving it agains a apache style "mime.types" file.

public static String get ( $path, $mimeFile "" )
$path string

Path to Map/get content type by

$mimeFile String

Absolute filepath to mime.types style file.

return String

Mime type of path or an empty string on failue.