class Request

Handles all kind of stuff during one request

Properties

bool $post
bool $get
bool $put
bool $delete

Methods

__construct()

Request constructor.

bool
accepts_html()

Returns true of the requesting browser accepts text/html as response mime type

bool
accepts_image()

Returns true of the requesting browser accepts image/* as response mime type

bool
accepts_mime($accepted_mime_type)

Checks if the browser accepts the passed mime types for this request. Parameter can contain wildcards using fnmatch syntax $XF->lib->request->accepts_mime("text/*")

get_input()

Read everything from STDIN e.g. for PUT Requests

mixed
get_var($var)

No description

bool
is_webservice_call(string $type = 'any')

No description

set_var($var, $value)

No description

Details

at line 37
__construct()

Request constructor.

at line 132
bool accepts_html()

Returns true of the requesting browser accepts text/html as response mime type

Return Value

bool

at line 140
bool accepts_image()

Returns true of the requesting browser accepts image/* as response mime type

Return Value

bool

at line 118
bool accepts_mime($accepted_mime_type)

Checks if the browser accepts the passed mime types for this request. Parameter can contain wildcards using fnmatch syntax $XF->lib->request->accepts_mime("text/*")

Parameters

$accepted_mime_type

Return Value

bool

Returns true if the passed mime is accepted

at line 102
get_input()

Read everything from STDIN e.g. for PUT Requests

at line 61
mixed get_var($var)

No description

Parameters

$var

Return Value

mixed

at line 70
bool is_webservice_call(string $type = 'any')

No description

Parameters

string $type

Return Value

bool

at line 52
set_var($var, $value)

No description

Parameters

$var
$value