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)
Constructor Summary
public
__construct (string $name, string $method, $params, [$post = array()], [$files = array()], [$flags = array()])
Method Summary
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.
array
modify ($var, $key, [$value = NULL])
Methods Inherited From Object
Object::extensionMethod(), Object::getClass(), Object::getReflection(), Object::__call(), Object::__callStatic(), Object::__get(), Object::__isset(), Object::__set(), Object::__unset()
Constant Summary
string FORWARD 'FORWARD'

line 37

method

Constructor Details

line 66

__construct

public __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
Method Details

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  

line 161

modify

public array modify ($var, $key, [$value = NULL])

Input
$var
$key
$value
Output
array