Метод |
Описание |
|
dispatch ( string $module, string $controller, string $action, array $params = [] ) : boolean |
Dispatches a handle action taking into account the routing parameters |
|
forward ( string $forward, array $params = [] ) |
Forwards the execution flow to another controller/action
Dispatchers are unique per module. Forwarding between modules is not allowed |
|
getActionName ( ) : string |
Gets the latest dispatched action name |
|
getController ( ) : Controller |
|
|
getControllerName ( ) : string |
Gets last dispatched controller name |
|
getModuleName ( ) : string |
Gets the module where the controller class is |
|
getParam ( string | integer $param, string | array $filters = null, mixed $defaultValue = null ) : mixed |
Gets a param by its name or numeric index |
|
getParams ( ) : array |
Gets action params |
|
getPreviousActionName ( ) : string |
Returns the previous action in the dispatcher |
|
getPreviousControllerName ( ) : string |
Returns the previous controller in the dispatcher |
|
getReturnedValue ( ) : mixed |
Returns value returned by the latest dispatched action |
|
hasParam ( string $param ) : boolean |
|
|
setActionName ( string $actionName ) : static |
|
|
setControllerName ( string $controllerName ) : static |
|
|
setParams ( array $params, boolean $merge = true ) : static |
|
|
setReturnedValue ( mixed $value ) : static |
Sets the latest returned value by an action manually |
|
wasForwarded ( ) : boolean |
Check if the current executed action was forwarded by another one |
|