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/Routers/SimpleRouter.php (line 35)
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 38

string PRESENTER_KEY 'presenter'

line 37


Method Details

line 55

__construct

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

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

line 112

constructUrl

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

Constructs absolute URL from PresenterRequest object.

Implementation of:

Input
PresenterRequest $appRequest
$httpRequest
Output
string|NULL  

line 147

getDefaults

public array getDefaults ()

Returns default values.

Output
array  

line 81

match

public PresenterRequest|NULL match ($httpRequest)

Maps HTTP request to a PresenterRequest object.

Implementation of:

Input
$httpRequest
Output
PresenterRequest|NULL