[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 271 lignes (9 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
MIME_Magic:: (7 méthodes):
_getMimeExtensionMap()
_getMimeMagicFile()
extToMIME()
filenameToMIME()
MIMEToExt()
analyzeFile()
analyzeData()
Classe: MIME_Magic - X-Ref
The MIME_Magic:: class provides an interface to determine a_getMimeExtensionMap() X-Ref |
Returns a copy of the MIME extension map. return: array The MIME extension map. |
_getMimeMagicFile() X-Ref |
Returns a copy of the MIME magic file. return: array The MIME magic file. |
extToMIME($ext) X-Ref |
Attempt to convert a file extension to a MIME type, based on the global Horde and application specific config files. If we cannot map the file extension to a specific type, then we fall back to a custom MIME handler 'x-extension/$ext', which can be used as a normal MIME type internally throughout Horde. param: string $ext The file extension to be mapped to a MIME type. return: string The MIME type of the file extension. |
filenameToMIME($filename, $unknown = true) X-Ref |
Attempt to convert a filename to a MIME type, based on the global Horde and application specific config files. param: string $filename The filename to be mapped to a MIME type. param: boolean $unknown How should unknown extensions be handled? If return: string The MIME type of the filename. |
MIMEToExt($type) X-Ref |
Attempt to convert a MIME type to a file extension, based on the global Horde and application specific config files. If we cannot map the type to a file extension, we return false. param: string $type The MIME type to be mapped to a file extension. return: string The file extension of the MIME type. |
analyzeFile($path, $magic_db = null) X-Ref |
Uses variants of the UNIX "file" command to attempt to determine the MIME type of an unknown file. param: string $path The path to the file to analyze. param: string $magic_db Path to the mime magic database. return: string The MIME type of the file. Returns false if the file |
analyzeData($data, $magic_db = null) X-Ref |
Uses variants of the UNIX "file" command to attempt to determine the MIME type of an unknown byte stream. param: string $data The file data to analyze. param: string $magic_db Path to the mime magic database. return: string The MIME type of the file. Returns false if the file |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |