\OCP\FilesIMimeTypeLoader

Interface IMimeTypeLoader

Summary

Methods
Constants
getMimetypeById()
getId()
exists()
reset()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getMimetypeById()

getMimetypeById(integer  $id) : string|null

Get a mimetype from its ID

Parameters

integer $id

Returns

string|null

getId()

getId(string  $mimetype) : integer

Get a mimetype ID, adding the mimetype to the DB if it does not exist

Parameters

string $mimetype

Returns

integer

exists()

exists(string  $mimetype) : boolean

Test if a mimetype exists in the database

Parameters

string $mimetype

Returns

boolean

reset()

reset() 

Clear all loaded mimetypes, allow for re-loading