\ManaPHP\RpcDispatcherInterface

Summary

Methods
Constants
getArea()
setArea()
getController()
setController()
getAction()
setAction()
setParams()
getParams()
getParam()
hasParam()
getPath()
getControllerInstance()
dispatch()
isInvoking()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getArea()

getArea() : string

Gets last dispatched area name

Returns

string

setArea()

setArea(string  $area) : static

Parameters

string $area

Returns

static

getController()

getController() : string

Gets last dispatched controller name

Returns

string

setController()

setController(string  $controller) : static

Parameters

string $controller

Returns

static

getAction()

getAction() : string

Gets last dispatched action name

Returns

string

setAction()

setAction(string  $action) : static

Parameters

string $action

Returns

static

setParams()

setParams(array  $params, boolean  $merge = true) : static

Parameters

array $params
boolean $merge

Returns

static

getParams()

getParams() : array

Gets action params

Returns

array

getParam()

getParam(string|integer  $name, mixed  $default = null) : mixed

Gets a param by its name or numeric index

Parameters

string|integer $name
mixed $default

Returns

mixed

hasParam()

hasParam(string  $name) : boolean

Parameters

string $name

Returns

boolean

getPath()

getPath() : string

Returns

string

getControllerInstance()

getControllerInstance() : \ManaPHP\Controller

Returns

\ManaPHP\Controller

dispatch()

dispatch(\ManaPHP\Http\RouterInterface|\ManaPHP\Http\RouterContext  $router) : mixed

Dispatches a handle action taking into account the routing parameters

Parameters

\ManaPHP\Http\RouterInterface|\ManaPHP\Http\RouterContext $router

Throws

\ManaPHP\Exception\AbortException

Returns

mixed

isInvoking()

isInvoking() : boolean

Returns

boolean