final class PresenterRequest extends FreezableObject

Presenter request. Immutable object.

Constants

FORWARD

method

SECURED

flag

RESTORED

flag

Properties

string $presenterName
array $params
array $post
array $files

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.

setParams(array $params)

Sets variables provided to the presenter.

array
getParams()

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

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 76
__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 93
PresenterRequest setPresenterName($name)

Sets the presenter name.

Parameters

$name

Return Value

PresenterRequest

provides a fluent interface

at line 106
string getPresenterName()

Retrieve the presenter name.

Return Value

string

at line 118
PresenterRequest setParams(array $params)

Sets variables provided to the presenter.

Parameters

array $params

Return Value

PresenterRequest

provides a fluent interface

at line 131
array getParams()

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

Return Value

array

at line 143
PresenterRequest setPost(array $params)

Sets variables provided to the presenter via POST.

Parameters

array $params

Return Value

PresenterRequest

provides a fluent interface

at line 156
array getPost()

Returns all variables provided to the presenter via POST.

Return Value

array

at line 168
PresenterRequest setFiles(array $files)

Sets all uploaded files.

Parameters

array $files

Return Value

PresenterRequest

provides a fluent interface

at line 181
array getFiles()

Returns all uploaded files.

Return Value

array

at line 193
PresenterRequest setMethod($method)

Sets the method.

Parameters

$method

Return Value

PresenterRequest

provides a fluent interface

at line 205
string getMethod()

Returns the method.

Return Value

string

at line 217
bool isMethod($method)

Checks if the method is the given one.

Parameters

$method

Return Value

bool

at line 228
bool isPost()

Checks if the method is POST.

Return Value

bool

at line 241
PresenterRequest setFlag($flag, $value = TRUE)

Sets the flag.

Parameters

$flag
$value

Return Value

PresenterRequest

provides a fluent interface

at line 255
bool hasFlag($flag)

Checks the flag.

Parameters

$flag

Return Value

bool