Class PresenterRequest (namespace Nette\Application)


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.
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.
void
setFiles ($files)
Sets all uploaded files.
void
setFlag (string $flag, [bool $value = TRUE])
Sets the flag.
void
setMethod (string $method)
Sets the method.
void
setParams ($params)
Sets variables provided to the presenter.
void
setPost ($params)
Sets variables provided to the presenter via POST.
void
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 177

getFiles

public array getFiles ()

Returns all uploaded files.

Output
array  

line 129

getParams

public array getParams ()

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

Output
array  

line 153

getPost

public array getPost ()

Returns all variables provided to the presenter via POST.

Output
array  

line 105

getPresenterName

public string getPresenterName ()

Retrieve the presenter name.

Output
string  

line 238

hasFlag

public bool hasFlag (string $flag)

Checks the flag.

Input
string $flag
Output
bool  

line 201

isMethod

public bool isMethod (string $method)

Checks if the method is the given one.

Input
string $method
Output
bool  

line 212

isPost

public bool isPost ()

Checks if the method is POST.

Output
bool  

line 165

setFiles

public void setFiles ($files)

Sets all uploaded files.

Input
$files
Output
void  

line 225

setFlag

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

Sets the flag.

Input
string $flag
bool $value
Output
void  

line 189

setMethod

public void setMethod (string $method)

Sets the method.

Input
string $method
Output
void  

line 117

setParams

public void setParams ($params)

Sets variables provided to the presenter.

Input
$params
Output
void  

line 141

setPost

public void setPost ($params)

Sets variables provided to the presenter via POST.

Input
$params
Output
void  

line 93

setPresenterName

public void setPresenterName (string $name)

Sets the presenter name.

Input
string $name
Output
void