Fully Qualified Name: | Zend\Mvc\Controller\AbstractActionController |
Extends: | AbstractController |
Basic action controller
Name | Description | Defined By |
---|---|---|
__call() | Method overloading: return/call plugins | AbstractController |
dispatch() | Dispatch a request | AbstractController |
getEvent() | Get the attached event | AbstractController |
getEventManager() | Retrieve the event manager | AbstractController |
getMethodFromAction() | Transform an "action" token into a method name | AbstractController |
getPluginManager() | Get plugin manager | AbstractController |
getRequest() | Get request object | AbstractController |
getResponse() | Get response object | AbstractController |
indexAction() | Default action if none provided | AbstractActionController |
notFoundAction() | Action called if matched action does not exist | AbstractActionController |
onDispatch() | Execute the request | AbstractActionController |
plugin() | Get plugin instance | AbstractController |
setEvent() | Set an event to use during dispatch | AbstractController |
setEventManager() | Set the event manager instance used by this context | AbstractController |
setPluginManager() | Set plugin manager | AbstractController |
Method overloading: return/call plugins
If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
Parameter Name | Type | Description |
---|---|---|
$method | string | |
$params | array |
Returns: mixed
Dispatch a request
Parameter Name | Type | Description |
---|---|---|
$request | \Request | |
$response | null|\Response |
Returns: \Response|mixed
Get the attached event
Will create a new MvcEvent if none provided.
Returns: \MvcEvent
Retrieve the event manager
Lazy-loads an EventManager instance if none registered.
Returns: \EventManagerInterface
Transform an "action" token into a method name
Parameter Name | Type | Description |
---|---|---|
$action | string |
Returns: string
Get plugin manager
Returns: \PluginManager
Get request object
Returns: \Request
Get response object
Returns: \Response
Default action if none provided
Returns: \ViewModel
Action called if matched action does not exist
Returns: \ViewModel
Execute the request
Parameter Name | Type | Description |
---|---|---|
$e | \MvcEvent |
Returns: mixed
Get plugin instance
Parameter Name | Type | Description |
---|---|---|
$name | string | Name |
$options | null|array | Options |
Returns: mixed
Set an event to use during dispatch
By default, will re-cast to MvcEvent if another event type is provided.
Parameter Name | Type | Description |
---|---|---|
$e | \Event |
Returns: void
Set the event manager instance used by this context
Parameter Name | Type | Description |
---|---|---|
$events | \EventManagerInterface |
Returns: \AbstractController
Set plugin manager
Parameter Name | Type | Description |
---|---|---|
$plugins | \PluginManager |
Returns: \AbstractController