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 41 method |
string | RESTORED |
'restored' |
line 47 flag |
string | SECURED |
'secured' |
line 44 flag |
Method Details | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 76 __constructpublic PresenterRequest __construct (string $name, string $method, $params, [$post =
|
|||||||||||||||||||||||||||
line 181 getFilespublic array getFiles () Returns all uploaded files.
|
|||||||||||||||||||||||||||
line 205 getMethodpublic string getMethod () Returns the method.
|
|||||||||||||||||||||||||||
line 131 getParamspublic array getParams () Returns all variables provided to the presenter (usually via URL).
|
|||||||||||||||||||||||||||
line 156 getPostpublic array getPost () Returns all variables provided to the presenter via POST.
|
|||||||||||||||||||||||||||
line 106 getPresenterNamepublic string getPresenterName () Retrieve the presenter name.
|
|||||||||||||||||||||||||||
line 255 hasFlagpublic bool hasFlag (string $flag) Checks the flag.
|
|||||||||||||||||||||||||||
line 217 isMethodpublic bool isMethod (string $method) Checks if the method is the given one.
|
|||||||||||||||||||||||||||
line 228 isPostpublic bool isPost () Checks if the method is POST.
|
|||||||||||||||||||||||||||
line 168 setFilespublic PresenterRequest setFiles ($files) Sets all uploaded files.
|
|||||||||||||||||||||||||||
line 241 setFlagpublic PresenterRequest setFlag (string $flag, [bool $value = Sets the flag.
|
|||||||||||||||||||||||||||
line 193 setMethodpublic PresenterRequest setMethod (string $method) Sets the method.
|
|||||||||||||||||||||||||||
line 118 setParamspublic PresenterRequest setParams ($params) Sets variables provided to the presenter.
|
|||||||||||||||||||||||||||
line 143 setPostpublic PresenterRequest setPost ($params) Sets variables provided to the presenter via POST.
|
|||||||||||||||||||||||||||
line 93 setPresenterNamepublic PresenterRequest setPresenterName (string $name) Sets the presenter name.
|