Class CliRouter (namespace Nette\Application)


The unidirectional router for CLI. (experimental)

Object
   |
   --CliRouter

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/Routers/CliRouter.php (line 35)
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 37


Method Details

line 47

__construct

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

Input
array $defaults default values
Output
CliRouter  

line 122

constructUrl

public NULL constructUrl (PresenterRequest $appRequest, $httpRequest)

This router is only unidirectional.

Implementation of:

Input
PresenterRequest $appRequest
$httpRequest
Output
NULL  

line 133

getDefaults

public array getDefaults ()

Returns default values.

Output
array  

line 59

match

public PresenterRequest|NULL match ($httpRequest)

Maps command line arguments to a PresenterRequest object.

Implementation of:

Input
$httpRequest
Output
PresenterRequest|NULL