Documentation

Interface Phalcon\DispatcherInterface

Source on GitHub

Phalcon\DispatcherInterface initializer

Methods

abstract public setActionSuffix (string $actionSuffix)

Sets the default action suffix

abstract public setDefaultModule (string $module)

Sets the default module

abstract public string getDefaultModule ()

Gets the default module

abstract public setDefaultNamespace (string $namespace)

Sets the default namespace

abstract public string getDefaultNamespace ()

Gets the default namespace

abstract public setDefaultHandler (string $handlerName)

Sets the default handler name

abstract public string getDefaultHandler ()

Gets the default handler name

abstract public setDefaultAction (string $actionName)

Sets the default action name

abstract public string getDefaultAction ()

Gets the default action name

abstract public setModuleName (unknown $module)

Sets the module name to be dispatched

abstract public string getModuleName ()

Gets last dispatched module name

abstract public setNamespaceName (unknown $namespace)

Sets the namespace to be dispatched

abstract public string getNamespaceName ()

Gets last dispatched namespace

abstract public setHandlerName (string $handlerName)

Sets the handler name to be dispatched

abstract public string getHandlerName ()

Gets last dispatched handler name

abstract public setActionName (string $actionName)

Sets the action name to be dispatched

abstract public string getActionName ()

Gets last dispatched action name

abstract public setParams (array $params)

Sets action params to be dispatched

abstract public array getParams ()

Gets action params

abstract public hasParam (unknown $param)

...

abstract public setParam (mixed $param, mixed $value)

Set a param by its name or numeric index

abstract public mixed getParam (mixed $param, [string|array $filters])

Gets a param by its name or numeric index

abstract public boolean isFinished ()

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

abstract public mixed getReturnedValue ()

Returns value returned by the lastest dispatched action

abstract public object dispatch ()

Dispatches a handle action taking into account the routing parameters

abstract public forward (array $forward)

Forwards the execution flow to another controller/action

abstract public camelizeNamespace (unknown $camelize)

Forwards the execution flow to another controller/action

abstract public Phalcon\DispatcherInterface setErrorHandler (unknown $callback, [int $exception_code])

Set error handler

abstract public mixed getErrorHandler (int $exception_code)

Get error handler