IMimeTypeLoader
Interface IMimeTypeLoader
Tags
Table of Contents
- exists() : bool
- Test if a mimetype exists in the database
- getId() : int
- Get a mimetype ID, adding the mimetype to the DB if it does not exist
- getMimetypeById() : string|null
- Get a mimetype from its ID
- reset() : mixed
- Clear all loaded mimetypes, allow for re-loading
Methods
exists()
Test if a mimetype exists in the database
public
exists(string $mimetype) : bool
Parameters
- $mimetype : string
Tags
Return values
bool —getId()
Get a mimetype ID, adding the mimetype to the DB if it does not exist
public
getId(string $mimetype) : int
Parameters
- $mimetype : string
Tags
Return values
int —getMimetypeById()
Get a mimetype from its ID
public
getMimetypeById(int $id) : string|null
Parameters
- $id : int
Tags
Return values
string|null —reset()
Clear all loaded mimetypes, allow for re-loading
public
reset() : mixed