UNB Components Code Reference

UnbMessage::GetContentTypeForFileName method

Gets the internal content type for the specified file name.

public static function UnbMessage::GetContentTypeForFileName ($filename);

Parameters

filename

(string) File name to get the type of

Return value

(string) Type code, or null for unknown file types.

Remarks

The content type is defined in an internal array and matched by the file name extension.

Member of class: UnbMessage

Implementation file: message.class.php, line 2241

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.