Class NCliRouter


The unidirectional router for CLI. (experimental)

NObject
   |
   --NCliRouter

Implements interfaces:

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

line 37


Method Details

line 47

__construct

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

Input
array $defaults default values
Output
NCliRouter  

line 122

constructUrl

public NULL constructUrl (NPresenterRequest $appRequest, $httpRequest)

This router is only unidirectional.

Implementation of:

Input
NPresenterRequest $appRequest
$httpRequest
Output
NULL  

line 133

getDefaults

public array getDefaults ()

Returns default values.

Output
array  

line 59

match

public NPresenterRequest|NULL match ($httpRequest)

Maps command line arguments to a NPresenterRequest object.

Implementation of:

Input
$httpRequest
Output
NPresenterRequest|NULL