Class PresenterRequest (namespace Nette\Application)


Presenter request. Immutable object.

Object
   |
   --FreezableObject
      |
      --PresenterRequest
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/PresenterRequest.php (line 38)
Public Method Summary
PresenterRequest
__construct (string $name, string $method, $params, [$post = array()], [$files = array()], [$flags = array()])
array
Returns all uploaded files.
string
Returns the method.
array
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

__construct

public PresenterRequest __construct (string $name, string $method, $params, [$post = array()], [$files = array()], [$flags = array()])

Input
string $name fully qualified presenter name (module:module:presenter)
string $method method
$params variables provided to the presenter usually via URL
$post variables provided to the presenter via POST
$files all uploaded files
$flags
Output
PresenterRequest  

line 181

getFiles

public array getFiles ()

Returns all uploaded files.

Output
array  

line 205

getMethod

public string getMethod ()

Returns the method.

Output
string  

line 131

getParams

public array getParams ()

Returns all variables provided to the presenter (usually via URL).

Output
array  

line 156

getPost

public array getPost ()

Returns all variables provided to the presenter via POST.

Output
array  

line 106

getPresenterName

public string getPresenterName ()

Retrieve the presenter name.

Output
string  

line 255

hasFlag

public bool hasFlag (string $flag)

Checks the flag.

Input
string $flag
Output
bool  

line 217

isMethod

public bool isMethod (string $method)

Checks if the method is the given one.

Input
string $method
Output
bool  

line 228

isPost

public bool isPost ()

Checks if the method is POST.

Output
bool  

line 168

setFiles

public PresenterRequest setFiles ($files)

Sets all uploaded files.

Input
$files
Output
PresenterRequest provides a fluent interface

line 241

setFlag

public PresenterRequest setFlag (string $flag, [bool $value = TRUE])

Sets the flag.

Input
string $flag
bool $value
Output
PresenterRequest provides a fluent interface

line 193

setMethod

public PresenterRequest setMethod (string $method)

Sets the method.

Input
string $method
Output
PresenterRequest provides a fluent interface

line 118

setParams

public PresenterRequest setParams ($params)

Sets variables provided to the presenter.

Input
$params
Output
PresenterRequest provides a fluent interface

line 143

setPost

public PresenterRequest setPost ($params)

Sets variables provided to the presenter via POST.

Input
$params
Output
PresenterRequest provides a fluent interface

line 93

setPresenterName

public PresenterRequest setPresenterName (string $name)

Sets the presenter name.

Input
string $name
Output
PresenterRequest provides a fluent interface