Class NCliRouter
The unidirectional router for CLI. (experimental)
NObject | --NCliRouter
Implements interfaces:
Public Method Summary | |
---|---|
NCliRouter |
__construct
([array $defaults =
array() ])
|
NULL |
constructUrl
(NPresenterRequest $appRequest, $httpRequest)
This router is only unidirectional.
|
array |
getDefaults
()
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 |
Variable Summary | ||||
---|---|---|---|---|
protected array | $defaults |
|
line 40 |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 47 __constructpublic NCliRouter __construct ([array $defaults =
|
|||||||||||||||
line 122 constructUrlpublic NULL constructUrl (NPresenterRequest $appRequest, $httpRequest) This router is only unidirectional. Implementation of:
|
|||||||||||||||
line 133 getDefaultspublic array getDefaults () Returns default values.
|
|||||||||||||||
line 59 matchpublic NPresenterRequest|NULL match ($httpRequest) Maps command line arguments to a NPresenterRequest object. Implementation of:
|