Request
class Request extends Object
Presenter request.
Constants
FORWARD |
method |
SECURED |
flag |
RESTORED |
flag |
Properties
array | $parameters | ||
array | $post | ||
array | $files | ||
string|null | $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 a parameter provided to the presenter.
Returns a variable provided to the presenter via POST.
Returns all uploaded files.
Returns the method.
Checks if the method is the given one.
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
at line 75
Request
setPresenterName($name)
Sets the presenter name.
at line 86
string
getPresenterName()
Retrieve the presenter name.
at line 96
Request
setParameters(array $params)
Sets variables provided to the presenter.
at line 107
array
getParameters()
Returns all variables provided to the presenter (usually via URL).
at line 118
mixed
getParameter($key)
Returns a parameter provided to the presenter.
at line 128
Request
setPost(array $params)
Sets variables provided to the presenter via POST.
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.
at line 159
Request
setFiles(array $files)
Sets all uploaded files.
at line 170
array
getFiles()
Returns all uploaded files.
at line 181
Request
setMethod($method)
Sets the method.
at line 192
string|null
getMethod()
Returns the method.
at line 203
bool
isMethod($method)
Checks if the method is the given one.
at line 212
isPost()
deprecated
deprecated
No description
at line 225
Request
setFlag($flag, $value = TRUE)
Sets the flag.
at line 237
bool
hasFlag($flag)
Checks the flag.