Class NPresenterRequest
Presenter request. Immutable object.
- NObject
-
NFreezableObject implements IFreezable
-
NPresenterRequest
public
|
#
__construct(
string
$name,
string
$method,
array
$params,
array
$post = array (
),
array
$files = array (
),
array
$flags = array (
)
)
Parameters$name string fully qualified presenter name (module:module:presenter)$method string method$params array variables provided to the presenter usually via URL$post array variables provided to the presenter via POST$files array all uploaded files$flags |
public
NPresenterRequest
|
#
setPresenterName(
string
$name
)
Sets the presenter name. Sets the presenter name. Parameters$name stringReturnsNPresenterRequest provides a fluent interface
|
public
string
|
#
getPresenterName(
)
Retrieve the presenter name. Retrieve the presenter name. |
public
NPresenterRequest
|
#
setParams(
array
$params
)
Sets variables provided to the presenter. Sets variables provided to the presenter. Parameters$params arrayReturnsNPresenterRequest provides a fluent interface
|
public
array
|
#
getParams(
)
Returns all variables provided to the presenter (usually via URL). Returns all variables provided to the presenter (usually via URL). |
public
NPresenterRequest
|
#
setPost(
array
$params
)
Sets variables provided to the presenter via POST. Sets variables provided to the presenter via POST. Parameters$params arrayReturnsNPresenterRequest provides a fluent interface
|
public
array
|
#
getPost(
)
Returns all variables provided to the presenter via POST. Returns all variables provided to the presenter via POST. |
public
NPresenterRequest
|
#
setFiles(
array
$files
)
Sets all uploaded files. Sets all uploaded files. Parameters$files arrayReturnsNPresenterRequest provides a fluent interface
|
public
array
|
#
getFiles(
)
Returns all uploaded files. Returns all uploaded files. |
public
NPresenterRequest
|
#
setMethod(
string
$method
)
Sets the method. Sets the method. Parameters$method stringReturnsNPresenterRequest provides a fluent interface
|
public
string
|
#
getMethod(
)
Returns the method. Returns the method. |
public
bool
|
#
isMethod(
string
$method
)
Checks if the method is the given one. Checks if the method is the given one. Parameters$method string |
public
bool
|
#
isPost(
)
Checks if the method is POST. Checks if the method is POST. |
public
NPresenterRequest
|
#
setFlag(
string
$flag,
bool
$value = true
)
Sets the flag. Sets the flag. Parameters$flag string$value boolReturnsNPresenterRequest provides a fluent interface
|
public
bool
|
#
hasFlag(
string
$flag
)
Checks the flag. Checks the flag. Parameters$flag string |