|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Class for getting mime type of a file or getting extensions for a file with a known type
Field Summary | |
string | $default_mime Default mime type for unknown extensions |
private boolean | $file_loaded Specifies if the type map has already benn loaded |
private string | $mime_file Mime types file name |
private array | $mime_types Type map |
Constructor Summary | |
void | ctlMimeType([string $mime_file]) Constructor. |
Method Summary | |
private boolean | error(string $msg) Sends an error to the errors object and returns FALSE |
mixed | getExtension() Get extension for a given mime type |
mixed | getType(string $file_name) Returns mime type for a given filename |
private boolean | readMimeFile() Reads information from type map file |
Field Detail |
string $default_mime
Default mime type for unknown extensions
private boolean $file_loaded
Specifies if the type map has already benn loaded
private string $mime_file
Mime types file name
private array $mime_types
Type map
Constructor Detail |
void ctlMimeType([string $mime_file])
Constructor. Sets attribute values (most importantly mime file name).
mime_file
- Filename containing type - extension mapMethod Detail |
private boolean error(string $msg)
Sends an error to the errors object and returns FALSE
msg
- error messagemixed getExtension()
Get extension for a given mime type
mixed getType(string $file_name)
Returns mime type for a given filename
file_name
- File nameprivate boolean readMimeFile()
Reads information from type map file
|
Tv2 documentation | |||||
PREV NEXT | FRAMES NO FRAME | |||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This document was generated by phpdocgen 0.17-rc3.
Copyright © 2002-03 Stéphane GALLAND (under the GNU General Public License)