XOOPS  2.6.0
Xoops\Core\MimeTypes Class Reference

Static Public Member Functions

static findExtensions ($type)
 
static findType ($extension)
 

Detailed Description

Definition at line 33 of file MimeTypes.php.

Member Function Documentation

static Xoops\Core\MimeTypes::findExtensions (   $type)
static

findExtensions - given a mimetype, get array of possible file extensions

Parameters
string$typemimetype
Returns
array of applicable extensions, empty if no match

Definition at line 42 of file MimeTypes.php.

References $type.

static Xoops\Core\MimeTypes::findType (   $extension)
static

findType - given a file extensions, return applicable mimetype

Parameters
string$extensionfile extension
Returns
string|null applicable mimetype (string) or null if no match

Definition at line 55 of file MimeTypes.php.


The documentation for this class was generated from the following file: