class Request extends Object

Presenter request.

Constants

FORWARD

method

SECURED

flag

RESTORED

flag

Properties

array $parameters
array $post
array $files
string|null $method

Methods

__construct($name, $method = NULL, array $params = array(), array $post = array(), array $files = array(), array $flags = array())

No description

setPresenterName($name)

Sets the presenter name.

string
getPresenterName()

Retrieve the presenter name.

setParameters(array $params)

Sets variables provided to the presenter.

array
getParameters()

Returns all variables provided to the presenter (usually via URL).

mixed
getParameter($key)

Returns a parameter provided to the presenter.

setPost(array $params)

Sets variables provided to the presenter via POST.

mixed
getPost($key = NULL)

Returns a variable provided to the presenter via POST.

setFiles(array $files)

Sets all uploaded files.

array
getFiles()

Returns all uploaded files.

setMethod($method)

Sets the method.

string|null
getMethod()

Returns the method.

bool
isMethod($method)

Checks if the method is the given one.

isPost() deprecated

No description

setFlag($flag, $value = TRUE)

Sets the flag.

bool
hasFlag($flag)

Checks the flag.

Details

at line 59
__construct($name, $method = NULL, array $params = array(), array $post = array(), array $files = array(), array $flags = array())

No description

Parameters

$name
$method
array $params
array $post
array $files
array $flags

at line 75
Request setPresenterName($name)

Sets the presenter name.

Parameters

$name

Return Value

Request

at line 86
string getPresenterName()

Retrieve the presenter name.

Return Value

string

at line 96
Request setParameters(array $params)

Sets variables provided to the presenter.

Parameters

array $params

Return Value

Request

at line 107
array getParameters()

Returns all variables provided to the presenter (usually via URL).

Return Value

array

at line 118
mixed getParameter($key)

Returns a parameter provided to the presenter.

Parameters

$key

Return Value

mixed

at line 128
Request setPost(array $params)

Sets variables provided to the presenter via POST.

Parameters

array $params

Return Value

Request

at line 141
mixed getPost($key = NULL)

Returns a variable provided to the presenter via POST.

If no key is passed, returns the entire array.

Parameters

$key

Return Value

mixed

at line 159
Request setFiles(array $files)

Sets all uploaded files.

Parameters

array $files

Return Value

Request

at line 170
array getFiles()

Returns all uploaded files.

Return Value

array

at line 181
Request setMethod($method)

Sets the method.

Parameters

$method

Return Value

Request

at line 192
string|null getMethod()

Returns the method.

Return Value

string|null

at line 203
bool isMethod($method)

Checks if the method is the given one.

Parameters

$method

Return Value

bool

at line 212
isPost() deprecated

deprecated

No description

at line 225
Request setFlag($flag, $value = TRUE)

Sets the flag.

Parameters

$flag
$value

Return Value

Request

at line 237
bool hasFlag($flag)

Checks the flag.

Parameters

$flag

Return Value

bool