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
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
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
int get_priority()

Get the guesser priority

Return Value

int

Guesser priority

at line 49
void set_priority(int $priority)

Set the guesser priority

Parameters

int $priority

Guesser priority

Return Value

void