Zend Framework
3.0
|
Public Member Functions | |
setApplication (ApplicationInterface $application) | |
Set application instance. | |
getApplication () | |
Get application instance. | |
getRouter () | |
Get router. | |
setRouter (RouteStackInterface $router) | |
Set router. | |
getRouteMatch () | |
Get route match. | |
setRouteMatch (RouteMatch $matches) | |
Set route match. | |
getRequest () | |
Get request. | |
setRequest (Request $request) | |
Set request. | |
getResponse () | |
Get response. | |
setResponse (Response $response) | |
Set response. | |
setViewModel (Model $viewModel) | |
Set the view model. | |
getViewModel () | |
Get the view model. | |
getResult () | |
Get result. | |
setResult ($result) | |
Set result. | |
isError () | |
Does the event represent an error response? | |
setError ($message) | |
Set the error message (indicating error in handling request) | |
getError () | |
Retrieve the error message, if any. | |
getController () | |
Get the currently registered controller name. | |
setController ($name) | |
Set controller name. | |
getControllerClass () | |
Get controller class. | |
setControllerClass ($class) | |
Set controller class. | |
Public Member Functions inherited from Event | |
__construct ($name=null, $target=null, $params=null) | |
Constructor. | |
getName () | |
Get event name. | |
getTarget () | |
Get the event target. | |
setParams ($params) | |
Set parameters. | |
getParams () | |
Get all parameters. | |
getParam ($name, $default=null) | |
Get an individual parameter. | |
setName ($name) | |
Set the event name. | |
setTarget ($target) | |
Set the event target/context. | |
setParam ($name, $value) | |
Set an individual parameter to a value. | |
stopPropagation ($flag=true) | |
Stop further event propagation. | |
propagationIsStopped () | |
Is propagation stopped? | |
Public Attributes | |
const | EVENT_BOOTSTRAP = 'bootstrap' |
#@+ Mvc events triggered by eventmanager | |
const | EVENT_DISPATCH = 'dispatch' |
const | EVENT_DISPATCH_ERROR = 'dispatch.error' |
const | EVENT_FINISH = 'finish' |
const | EVENT_RENDER = 'render' |
const | EVENT_RENDER_ERROR = 'render.error' |
const | EVENT_ROUTE = 'route' |
Protected Attributes | |
$application | |
#@- | |
$request | |
$response | |
$result | |
$router | |
$routeMatch | |
$viewModel | |
Protected Attributes inherited from Event | |
$name | |
$target | |
$params = [] | |
$stopPropagation = false | |
getApplication | ( | ) |
Get application instance.
getController | ( | ) |
Get the currently registered controller name.
getControllerClass | ( | ) |
Get controller class.
getError | ( | ) |
Retrieve the error message, if any.
getRequest | ( | ) |
Get request.
getResponse | ( | ) |
Get response.
getResult | ( | ) |
Get result.
getRouteMatch | ( | ) |
Get route match.
getRouter | ( | ) |
Get router.
getViewModel | ( | ) |
Get the view model.
isError | ( | ) |
Does the event represent an error response?
setApplication | ( | ApplicationInterface | $application | ) |
setController | ( | $name | ) |
setControllerClass | ( | $class | ) |
setError | ( | $message | ) |
Set the error message (indicating error in handling request)
string | $message |
setRequest | ( | Request | $request | ) |
setResponse | ( | Response | $response | ) |
setResult | ( | $result | ) |
setRouteMatch | ( | RouteMatch | $matches | ) |
setRouter | ( | RouteStackInterface | $router | ) |
setViewModel | ( | Model | $viewModel | ) |
|
protected |
#@-
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const EVENT_BOOTSTRAP = 'bootstrap' |
#@+ Mvc events triggered by eventmanager
const EVENT_DISPATCH = 'dispatch' |
const EVENT_DISPATCH_ERROR = 'dispatch.error' |
const EVENT_FINISH = 'finish' |
const EVENT_RENDER = 'render' |
const EVENT_RENDER_ERROR = 'render.error' |
const EVENT_ROUTE = 'route' |