Class NPresenterRequest
NPresenter request. Immutable object.
NObject | --NFreezableObject | --NPresenterRequest
Public Method Summary | |
---|---|
NPresenterRequest |
__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.
|
NPresenterRequest |
setFiles
($files)
Sets all uploaded files.
|
NPresenterRequest |
setFlag
(string $flag, [bool $value =
TRUE ])
Sets the flag.
|
NPresenterRequest |
setMethod
(string $method)
Sets the method.
|
NPresenterRequest |
setParams
($params)
Sets variables provided to the presenter.
|
NPresenterRequest |
setPost
($params)
Sets variables provided to the presenter via POST.
|
NPresenterRequest |
setPresenterName
(string $name)
Sets the presenter name.
|
Methods Inherited From NFreezableObject |
---|
freeze(), isFrozen(), updating(), __clone() |
Methods Inherited From NObject |
---|
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 NPresenterRequest __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 NPresenterRequest setFiles ($files) Sets all uploaded files.
|
|||||||||||||||||||||||||||
line 241 setFlagpublic NPresenterRequest setFlag (string $flag, [bool $value = Sets the flag.
|
|||||||||||||||||||||||||||
line 193 setMethodpublic NPresenterRequest setMethod (string $method) Sets the method.
|
|||||||||||||||||||||||||||
line 118 setParamspublic NPresenterRequest setParams ($params) Sets variables provided to the presenter.
|
|||||||||||||||||||||||||||
line 143 setPostpublic NPresenterRequest setPost ($params) Sets variables provided to the presenter via POST.
|
|||||||||||||||||||||||||||
line 93 setPresenterNamepublic NPresenterRequest setPresenterName (string $name) Sets the presenter name.
|