Request
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
No description
Sets the presenter name.
Retrieve the presenter name.
Sets variables provided to the presenter.
Returns all variables provided to the presenter (usually via URL).
Returns all variables provided to the presenter via POST.
Returns all uploaded files.
Returns the method.
Checks if the method is the given one.
Checks if the method is POST.
Checks the flag.
Details
at line 62
__construct($name, $method, array $params, array $post = array(), array $files = array(), array $flags = array())
No description
at line 78
Request
setPresenterName($name)
Sets the presenter name.
at line 90
string
getPresenterName()
Retrieve the presenter name.
at line 100
Request
setParameters(array $params)
Sets variables provided to the presenter.
at line 112
array
getParameters()
Returns all variables provided to the presenter (usually via URL).
at line 119
setParams(array $params)
deprecated
deprecated
No description
at line 127
getParams()
deprecated
deprecated
No description
at line 138
Request
setPost(array $params)
Sets variables provided to the presenter via POST.
at line 150
array
getPost()
Returns all variables provided to the presenter via POST.
at line 160
Request
setFiles(array $files)
Sets all uploaded files.
at line 172
array
getFiles()
Returns all uploaded files.
at line 183
Request
setMethod($method)
Sets the method.
at line 194
string
getMethod()
Returns the method.
at line 205
bool
isMethod($method)
Checks if the method is the given one.
at line 215
bool
isPost()
Checks if the method is POST.
at line 227
Request
setFlag($flag, $value = TRUE)
Sets the flag.
at line 240
bool
hasFlag($flag)
Checks the flag.