Class PresenterRequest (namespace Nette\Application)
Presenter request. Immutable object.
Object | --FreezableObject | --PresenterRequest
Public Method Summary | |
---|---|
PresenterRequest |
__construct
(string $name, string $method, $params, [$post =
array() ], [$files = array() ], [$flags = array() ])
|
array |
getFiles
()
Returns all uploaded files.
|
string |
getMethod
()
Returns the method.
|
array |
getParams
()
Returns all variables provided to the presenter (usually via URL).
|
array |
getPost
()
Returns all variables provided to the presenter via POST.
|
string |
Retrieve the presenter name.
|
bool |
hasFlag
(string $flag)
Checks the flag.
|
bool |
isMethod
(string $method)
Checks if the method is the given one.
|
bool |
isPost
()
Checks if the method is POST.
|
PresenterRequest |
setFiles
($files)
Sets all uploaded files.
|
PresenterRequest |
setFlag
(string $flag, [bool $value =
TRUE ])
Sets the flag.
|
PresenterRequest |
setMethod
(string $method)
Sets the method.
|
PresenterRequest |
setParams
($params)
Sets variables provided to the presenter.
|
PresenterRequest |
setPost
($params)
Sets variables provided to the presenter via POST.
|
PresenterRequest |
setPresenterName
(string $name)
Sets the presenter name.
|
Methods Inherited From FreezableObject |
---|
freeze(), isFrozen(), updating(), __clone() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary | |||
---|---|---|---|
string | FORWARD |
'FORWARD' |
line 29 method |
string | RESTORED |
'restored' |
line 35 flag |
string | SECURED |
'secured' |
line 32 flag |
Method Details | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 64 __constructpublic PresenterRequest __construct (string $name, string $method, $params, [$post =
|
|||||||||||||||||||||||||||
line 169 getFilespublic array getFiles () Returns all uploaded files.
|
|||||||||||||||||||||||||||
line 193 getMethodpublic string getMethod () Returns the method.
|
|||||||||||||||||||||||||||
line 119 getParamspublic array getParams () Returns all variables provided to the presenter (usually via URL).
|
|||||||||||||||||||||||||||
line 144 getPostpublic array getPost () Returns all variables provided to the presenter via POST.
|
|||||||||||||||||||||||||||
line 94 getPresenterNamepublic string getPresenterName () Retrieve the presenter name.
|
|||||||||||||||||||||||||||
line 243 hasFlagpublic bool hasFlag (string $flag) Checks the flag.
|
|||||||||||||||||||||||||||
line 205 isMethodpublic bool isMethod (string $method) Checks if the method is the given one.
|
|||||||||||||||||||||||||||
line 216 isPostpublic bool isPost () Checks if the method is POST.
|
|||||||||||||||||||||||||||
line 156 setFilespublic PresenterRequest setFiles ($files) Sets all uploaded files.
|
|||||||||||||||||||||||||||
line 229 setFlagpublic PresenterRequest setFlag (string $flag, [bool $value = Sets the flag.
|
|||||||||||||||||||||||||||
line 181 setMethodpublic PresenterRequest setMethod (string $method) Sets the method.
|
|||||||||||||||||||||||||||
line 106 setParamspublic PresenterRequest setParams ($params) Sets variables provided to the presenter.
|
|||||||||||||||||||||||||||
line 131 setPostpublic PresenterRequest setPost ($params) Sets variables provided to the presenter via POST.
|
|||||||||||||||||||||||||||
line 81 setPresenterNamepublic PresenterRequest setPresenterName (string $name) Sets the presenter name.
|