phpBB API Documentation
Class

phpbb\mimetype\content_guesser

class content_guesser extends guesser_base

Methods

int get_priority()

Get the guesser priority

from guesser_base
void set_priority(int $priority)

Set the guesser priority

from guesser_base
bool is_supported()

Returns whether this guesser is supported on the current OS

string guess(string $file, string $file_name = '')

Guess mimetype of supplied file

Details

in guesser_base at line 26
public int get_priority()

Get the guesser priority

Return Value

int Guesser priority

in guesser_base at line 34
public void set_priority(int $priority)

Set the guesser priority

Parameters

int $priority Guesser priority

Return Value

void

at line 21
public bool is_supported()

Returns whether this guesser is supported on the current OS

Return Value

bool True if guesser is supported, false if not

at line 29
public string guess(string $file, string $file_name = '')

Guess mimetype of supplied file

Parameters

string $file Path to file
string $file_name The real file name

Return Value

string Guess for mimetype of file