class Request extends FreezableObject

Presenter request. Immutable object.

Constants

FORWARD

method

SECURED

flag

RESTORED

flag

Properties

string $presenterName
array $parameters
array $post
array $files
string $method

Methods

__construct($name, $method, array $params, 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).

setParams(array $params) deprecated

No description

getParams() deprecated

No description

setPost(array $params)

Sets variables provided to the presenter via POST.

array
getPost()

Returns all variables 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
getMethod()

Returns the method.

bool
isMethod($method)

Checks if the method is the given one.

bool
isPost()

Checks if the method is POST.

setFlag($flag, $value = TRUE)

Sets the flag.

bool
hasFlag($flag)

Checks the flag.

Details

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

No description

Parameters

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

at line 78
Request setPresenterName($name)

Sets the presenter name.

Parameters

$name

Return Value

Request

at line 90
string getPresenterName()

Retrieve the presenter name.

Return Value

string

at line 100
Request setParameters(array $params)

Sets variables provided to the presenter.

Parameters

array $params

Return Value

Request

at line 112
array getParameters()

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

Return Value

array

at line 119
setParams(array $params) deprecated

deprecated

No description

Parameters

array $params

at line 127
getParams() deprecated

deprecated

No description

at line 138
Request setPost(array $params)

Sets variables provided to the presenter via POST.

Parameters

array $params

Return Value

Request

at line 150
array getPost()

Returns all variables provided to the presenter via POST.

Return Value

array

at line 160
Request setFiles(array $files)

Sets all uploaded files.

Parameters

array $files

Return Value

Request

at line 172
array getFiles()

Returns all uploaded files.

Return Value

array

at line 183
Request setMethod($method)

Sets the method.

Parameters

$method

Return Value

Request

at line 194
string getMethod()

Returns the method.

Return Value

string

at line 205
bool isMethod($method)

Checks if the method is the given one.

Parameters

$method

Return Value

bool

at line 215
bool isPost()

Checks if the method is POST.

Return Value

bool

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

Sets the flag.

Parameters

$flag
$value

Return Value

Request

at line 240
bool hasFlag($flag)

Checks the flag.

Parameters

$flag

Return Value

bool