Class SimpleRouter (namespace Nette\Application)


The bidirectional route for trivial routing via query string.

Object
   |
   --SimpleRouter

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/SimpleRouter.php (line 36)
Public Method Summary
SimpleRouter
__construct ([array $defaults = array()], [int $flags = 0])
string|NULL
constructUrl (PresenterRequest $appRequest, $httpRequest)
Constructs absolute URL from PresenterRequest object.
array
Returns default values.
PresenterRequest|NULL
match ($httpRequest)
Maps HTTP request to a PresenterRequest object.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
string MODULE_KEY 'module'

line 39

string PRESENTER_KEY 'presenter'

line 38

Variable Summary
protected array $defaults

line 45

protected int $flags

line 48

protected string $module ''

line 42


Method Details

line 56

__construct

public SimpleRouter __construct ([array $defaults = array()], [int $flags = 0])

Input
array $defaults default values
int $flags flags
Output
SimpleRouter  

line 117

constructUrl

public string|NULL constructUrl (PresenterRequest $appRequest, $httpRequest)

Constructs absolute URL from PresenterRequest object.

Implementation of:

Input
PresenterRequest $appRequest
$httpRequest
Output
string|NULL  

line 151

getDefaults

public array getDefaults ()

Returns default values.

Output
array  

line 86

match

public PresenterRequest|NULL match ($httpRequest)

Maps HTTP request to a PresenterRequest object.

Implementation of:

Input
$httpRequest
Output
PresenterRequest|NULL