Class PresenterRequest (namespace Nette\Application)


Application presenter request. Immutable object.

Object
   |
   --PresenterRequest
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/PresenterRequest.php (line 34)
Public Method Summary
PresenterRequest
__construct (string $name, string $method, $params, [$post = array()], [$files = array()], [$flags = array()])
array
Returns all uploaded files.
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.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
string FORWARD 'FORWARD'

line 37

method

Method Details

line 66

__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 115

getFiles

public array getFiles ()

Returns all uploaded files.

Output
array  

line 93

getParams

public array getParams ()

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

Output
array  

line 104

getPost

public array getPost ()

Returns all variables provided to the presenter via POST.

Output
array  

line 82

getPresenterName

public string getPresenterName ()

Retrieve the presenter name.

Output
string  

line 150

hasFlag

public bool hasFlag (string $flag)

Checks the flag.

Input
string $flag
Output
bool  

line 127

isMethod

public bool isMethod (string $method)

Checks if the method is the given one.

Input
string $method
Output
bool  

line 138

isPost

public bool isPost ()

Checks if the method is POST.

Output
bool