Zend Framework
3.0
|
Abstract controller. More...
Public Member Functions | |
onDispatch (MvcEvent $e) | |
Execute the request. | |
dispatch (Request $request, Response $response=null) | |
Dispatch a request. | |
getRequest () | |
Get request object. | |
getResponse () | |
Get response object. | |
setEventManager (EventManagerInterface $events) | |
Set the event manager instance used by this context. | |
getEventManager () | |
Retrieve the event manager. | |
setEvent (Event $e) | |
Set an event to use during dispatch. | |
getEvent () | |
Get the attached event. | |
getPluginManager () | |
Get plugin manager. | |
setPluginManager (PluginManager $plugins) | |
Set plugin manager. | |
plugin ($name, array $options=null) | |
Get plugin instance. | |
__call ($method, $params) | |
Method overloading: return/call plugins. | |
Public Member Functions inherited from DispatchableInterface | |
dispatch (RequestInterface $request, ResponseInterface $response=null) | |
Dispatch a request. | |
Static Public Member Functions | |
static | getMethodFromAction ($action) |
Transform an "action" token into a method name. | |
Protected Member Functions | |
attachDefaultListeners () | |
Register the default events for this controller. | |
Protected Attributes | |
$plugins | |
$request | |
$response | |
$event | |
$events | |
$eventIdentifier | |
Abstract controller.
Convenience methods for pre-built plugins (
acceptableViewModelSelector(array $matchAgainst = null, bool $returnDefault = true, $resultReference = null) forward() | layout(string $template = null) |mixed params(string $param = null, mixed $default = null) redirect() url() createHttpNotFoundModel(Response $response)
__call | ( | $method, | |
$params | |||
) |
Method overloading: return/call plugins.
If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
string | $method | |
array | $params |
|
protected |
Register the default events for this controller.
dispatch | ( | Request | $request, |
Response | $response = null |
||
) |
Dispatch a request.
dispatch.pre, dispatch.post
Request | $request | |
null | Response | $response |
getEvent | ( | ) |
Get the attached event.
Will create a new MvcEvent if none provided.
Implements InjectApplicationEventInterface.
getEventManager | ( | ) |
Retrieve the event manager.
Lazy-loads an EventManager instance if none registered.
Implements EventsCapableInterface.
|
static |
Transform an "action" token into a method name.
string | $action |
getPluginManager | ( | ) |
Get plugin manager.
getRequest | ( | ) |
Get request object.
getResponse | ( | ) |
Get response object.
plugin | ( | $name, | |
array | $options = null |
||
) |
Get plugin instance.
string | $name | Name of plugin to return |
null | array | $options | Options to pass to plugin constructor (if not already instantiated) |
setEvent | ( | Event | $e | ) |
Set an event to use during dispatch.
By default, will re-cast to MvcEvent if another event type is provided.
Event | $e |
Implements InjectApplicationEventInterface.
setEventManager | ( | EventManagerInterface | $events | ) |
Set the event manager instance used by this context.
EventManagerInterface | $events |
Implements EventManagerAwareInterface.
setPluginManager | ( | PluginManager | $plugins | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |