class content_guesser extends guesser_base

Properties

protected int $priority from  guesser_base

Methods

int
get_priority()

Get the guesser priority

void
set_priority(int $priority)

Set the guesser priority

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

Get the guesser priority

Return Value

int

Guesser priority

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

Set the guesser priority

Parameters

int $priority

Guesser priority

Return Value

void

at line 21
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
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