IMimeTypeLoader

interface OCP\Files\IMimeTypeLoader
Interface IMimeTypeLoader
Implemented by:OC\Files\Type\Loader
Source:lib/public/Files/IMimeTypeLoader.php#31

Methods

public OCP\Files\IMimeTypeLoader::getMimetypeById($id)
Get a mimetype from its ID
Source:

lib/public/Files/IMimeTypeLoader.php#40

Parameters:
  • $id (int)
Returns:

string | null

Since:

8.2.0

public OCP\Files\IMimeTypeLoader::getId($mimetype)
Get a mimetype ID, adding the mimetype to the DB if it does not exist
Source:

lib/public/Files/IMimeTypeLoader.php#49

Parameters:
  • $mimetype (string)
Returns:

int

Since:

8.2.0

public OCP\Files\IMimeTypeLoader::exists($mimetype)
Test if a mimetype exists in the database
Source:

lib/public/Files/IMimeTypeLoader.php#58

Parameters:
  • $mimetype (string)
Returns:

bool

Since:

8.2.0

public OCP\Files\IMimeTypeLoader::reset()
Clear all loaded mimetypes, allow for re-loading
Source:lib/public/Files/IMimeTypeLoader.php#65
Since:8.2.0