Class CliRouter (namespace Nette\Application)


The unidirectional router for CLI. (experimental)

Object
   |
   --CliRouter

Implements interfaces:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Application/Routers/CliRouter.php (line 21)
Public Method Summary
CliRouter
__construct ([array $defaults = array()])
NULL
constructUrl (PresenterRequest $appRequest, $httpRequest)
This router is only unidirectional.
array
Returns default values.
PresenterRequest|NULL
match ($httpRequest)
Maps command line arguments to a PresenterRequest object.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constant Summary
string PRESENTER_KEY 'action'

line 23


Method Details

line 33

__construct

public CliRouter __construct ([array $defaults = array()])

Input
array $defaults default values
Output
CliRouter  

line 108

constructUrl

public NULL constructUrl (PresenterRequest $appRequest, $httpRequest)

This router is only unidirectional.

Implementation of:

Input
PresenterRequest $appRequest
$httpRequest
Output
NULL  

line 119

getDefaults

public array getDefaults ()

Returns default values.

Output
array  

line 45

match

public PresenterRequest|NULL match ($httpRequest)

Maps command line arguments to a PresenterRequest object.

Implementation of:

Input
$httpRequest
Output
PresenterRequest|NULL