PHP Class ManaPHP\Cli\Router

Inheritance: extends ManaPHP\Component, implements ManaPHP\Cli\RouterInterface
Datei anzeigen Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_actionName string
$_commandAliases array
$_controllerName string
$_guessCommand boolean

Public Methods

Method Description
getActionName ( ) : string
getControllerName ( ) : string
route ( string $cmd ) : boolean
setAlias ( string $alias, string $command ) : static

Protected Methods

Method Description
_getCommands ( string $controller ) : array
_getControllers ( ) : array

Method Details

_getCommands() protected method

protected _getCommands ( string $controller ) : array
$controller string
return array

_getControllers() protected method

protected _getControllers ( ) : array
return array

getActionName() public method

public getActionName ( ) : string
return string

getControllerName() public method

public getControllerName ( ) : string
return string

route() public method

public route ( string $cmd ) : boolean
$cmd string
return boolean

setAlias() public method

public setAlias ( string $alias, string $command ) : static
$alias string
$command string
return static

Property Details

$_actionName protected_oe property

protected string $_actionName
return string

$_commandAliases protected_oe property

protected array $_commandAliases
return array

$_controllerName protected_oe property

protected string $_controllerName
return string

$_guessCommand protected_oe property

protected bool $_guessCommand
return boolean