Interface Phalcon\Mvc\DispatcherInterface

extends PhalconDispatcherInterface

Phalcon\Mvc\DispatcherInterface initializer

Methods

abstract public setControllerSuffix (string $controllerSuffix)

Sets the default controller suffix

abstract public setDefaultController (string $controllerName)

Sets the default controller name

abstract public setControllerName (string $controllerName, [unknown $isExact])

Sets the controller name to be dispatched

abstract public string getControllerName ()

Gets last dispatched controller name

abstract public Phalcon\Mvc\ControllerInterface getLastController ()

Returns the lastest dispatched controller

abstract public Phalcon\Mvc\ControllerInterface getActiveController ()

Returns the active controller in the dispatcher

abstract public setActionSuffix (string $actionSuffix) inherited from Phalcon\DispatcherInterface

Sets the default action suffix

abstract public setDefaultNamespace (string $namespace) inherited from Phalcon\DispatcherInterface

Sets the default namespace

abstract public setDefaultAction (string $actionName) inherited from Phalcon\DispatcherInterface

Sets the default action name

abstract public setActionName (string $actionName) inherited from Phalcon\DispatcherInterface

Sets the action name to be dispatched

abstract public string getActionName () inherited from Phalcon\DispatcherInterface

Gets last dispatched action name

abstract public setParams (array $params) inherited from Phalcon\DispatcherInterface

Sets action params to be dispatched

abstract public array getParams () inherited from Phalcon\DispatcherInterface

Gets action params

abstract public setParam (mixed $param, mixed $value) inherited from Phalcon\DispatcherInterface

Set a param by its name or numeric index

abstract public mixed getParam (mixed $param, [string|array $filters]) inherited from Phalcon\DispatcherInterface

Gets a param by its name or numeric index

abstract public boolean isFinished () inherited from Phalcon\DispatcherInterface

Checks if the dispatch loop is finished or has more pendent controllers/tasks to disptach

abstract public mixed getReturnedValue () inherited from Phalcon\DispatcherInterface

Returns value returned by the lastest dispatched action

abstract public object dispatch () inherited from Phalcon\DispatcherInterface

Dispatches a handle action taking into account the routing parameters

abstract public forward (array $forward) inherited from Phalcon\DispatcherInterface

Forwards the execution flow to another controller/action

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_DispatcherInterface.html