phpBB API Documentation
Interface

phpbb\mimetype\guesser_interface

interface guesser_interface

Methods

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

int get_priority()

Get the guesser priority

void set_priority(int $priority)

Set the guesser priority

Details

at line 23
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 33
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

at line 40
public int get_priority()

Get the guesser priority

Return Value

int Guesser priority

at line 49
public void set_priority(int $priority)

Set the guesser priority

Parameters

int $priority Guesser priority

Return Value

void