__call()
acceptableViewModelSelector()
createConsoleNotFoundModel()
createHttpNotFoundModel()
dispatch()
filePostRedirectGet()
fileprg()
flashMessenger()
forward()
getEvent()
getEventManager()
getMethodFromAction()
getPluginManager()
getRequest()
getResponse()
getServiceLocator()
identity()
layout()
onDispatch()
params()
plugin()
postRedirectGet()
prg()
redirect()
setEvent()
setEventManager()
setPluginManager()
setServiceLocator()
url()
attachDefaultListeners()
$event
$eventIdentifier
$events
$plugins
$request
$response
$serviceLocator
Abstract controller
Convenience methods for pre-built plugins (@see __call):
__call(string $method, array $params) : mixed
If the plugin is a functor, call it, passing the parameters provided. Otherwise, return the plugin instance.
string
array
mixed
acceptableViewModelSelector(array $matchAgainst, bool $returnDefault, \Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart $resultReference) : \Zend\View\Model\ModelInterface
magic | |
---|---|
method |
array
bool
\Zend\Http\Header\Accept\FieldValuePart\AbstractFieldValuePart
dispatch(\Zend\Stdlib\RequestInterface $request, \Zend\Stdlib\ResponseInterface $response) : \Zend\Stdlib\ResponseInterface | mixed
events | dispatch.pre, dispatch.post |
---|
\Zend\Stdlib\RequestInterface
null\Zend\Stdlib\ResponseInterface
filePostRedirectGet(\Zend\Form\FormInterface $form, $redirect =, $redirectToUrl =) : bool | array | \Zend\Http\Response
magic | |
---|---|
method |
\Zend\Form\FormInterface
$redirect$redirectToUrl
$redirect$redirectToUrl
fileprg(\Zend\Form\FormInterface $form, $redirect =, $redirectToUrl =) : bool | array | \Zend\Http\Response
magic | |
---|---|
method |
\Zend\Form\FormInterface
$redirect$redirectToUrl
$redirect$redirectToUrl
getEventManager() : \Zend\EventManager\EventManagerInterface
Lazy-loads an EventManager instance if none registered.
getMethodFromAction(string $action) : string
string
string
getPluginManager() : \Zend\Mvc\Controller\PluginManager
getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface
identity() : mixed | null
magic | |
---|---|
method |
mixed
null
layout(string $template) : \Zend\Mvc\Controller\Plugin\Layout | \Zend\View\Model\ModelInterface
magic | |
---|---|
method |
string
onDispatch(\Zend\Mvc\MvcEvent $e) : mixed
params(string $param, mixed $default) : \Zend\Mvc\Controller\Plugin\Params | mixed
magic | |
---|---|
method |
string
mixed
plugin(string $name, array $options) : mixed
string
Name of plugin to return
nullarray
Options to pass to plugin constructor (if not already instantiated)
mixed
postRedirectGet(string $redirect, bool $redirectToUrl) : \Zend\Http\Response | array
setEvent(\Zend\EventManager\EventInterface $e) : void
By default, will re-cast to MvcEvent if another event type is provided.
setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\Mvc\Controller\AbstractController
setPluginManager(\Zend\Mvc\Controller\PluginManager $plugins) : \Zend\Mvc\Controller\AbstractController
setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : void
\Zend\ServiceManager\ServiceLocatorInterface
attachDefaultListeners() : void
$eventIdentifier : null | string | string[]