PHP Class Zend\Mvc\MvcEvent

Inheritance: extends Zend\EventManager\Event
Afficher le fichier Open project: zendframework/zend-mvc Class Usage Examples

Protected Properties

Свойство Type Description
$application
$request Zend\Stdlib\RequestInterface
$response Zend\Stdlib\ResponseInterface
$result mixed
$routeMatch null | Zend\Router\RouteMatch
$router Zend\Router\RouteStackInterface
$viewModel Zend\View\Model\ModelInterface

Méthodes publiques

Méthode Description
getApplication ( ) : Zend\Mvc\ApplicationInterface Get application instance
getController ( ) : string Get the currently registered controller name
getControllerClass ( ) : string Get controller class
getError ( ) : string Retrieve the error message, if any
getRequest ( ) : Zend\Stdlib\RequestInterface Get request
getResponse ( ) : Zend\Stdlib\ResponseInterface Get response
getResult ( ) : mixed Get result
getRouteMatch ( ) : null | Zend\Router\RouteMatch Get route match
getRouter ( ) : Zend\Router\RouteStackInterface Get router
getViewModel ( ) : Zend\View\Model\ModelInterface Get the view model
isError ( ) : boolean Does the event represent an error response?
setApplication ( Zend\Mvc\ApplicationInterface $application ) : MvcEvent Set application instance
setController ( string $name ) : MvcEvent Set controller name
setControllerClass ( string $class ) : MvcEvent Set controller class
setError ( string $message ) : MvcEvent Set the error message (indicating error in handling request)
setRequest ( Zend\Stdlib\RequestInterface $request ) : MvcEvent Set request
setResponse ( Zend\Stdlib\ResponseInterface $response ) : MvcEvent Set response
setResult ( mixed $result ) : MvcEvent Set result
setRouteMatch ( Zend\Router\RouteMatch $matches ) : MvcEvent Set route match
setRouter ( Zend\Router\RouteStackInterface $router ) : MvcEvent Set router
setViewModel ( Zend\View\Model\ModelInterface $viewModel ) : MvcEvent Set the view model

Method Details

getApplication() public méthode

Get application instance
public getApplication ( ) : Zend\Mvc\ApplicationInterface
Résultat Zend\Mvc\ApplicationInterface

getController() public méthode

Get the currently registered controller name
public getController ( ) : string
Résultat string

getControllerClass() public méthode

Get controller class
public getControllerClass ( ) : string
Résultat string

getError() public méthode

Retrieve the error message, if any
public getError ( ) : string
Résultat string

getRequest() public méthode

Get request
public getRequest ( ) : Zend\Stdlib\RequestInterface
Résultat Zend\Stdlib\RequestInterface

getResponse() public méthode

Get response
public getResponse ( ) : Zend\Stdlib\ResponseInterface
Résultat Zend\Stdlib\ResponseInterface

getResult() public méthode

Get result
public getResult ( ) : mixed
Résultat mixed

getRouteMatch() public méthode

Get route match
public getRouteMatch ( ) : null | Zend\Router\RouteMatch
Résultat null | Zend\Router\RouteMatch

getRouter() public méthode

Get router
public getRouter ( ) : Zend\Router\RouteStackInterface
Résultat Zend\Router\RouteStackInterface

getViewModel() public méthode

Get the view model
public getViewModel ( ) : Zend\View\Model\ModelInterface
Résultat Zend\View\Model\ModelInterface

isError() public méthode

Does the event represent an error response?
public isError ( ) : boolean
Résultat boolean

setApplication() public méthode

Set application instance
public setApplication ( Zend\Mvc\ApplicationInterface $application ) : MvcEvent
$application Zend\Mvc\ApplicationInterface
Résultat MvcEvent

setController() public méthode

Set controller name
public setController ( string $name ) : MvcEvent
$name string
Résultat MvcEvent

setControllerClass() public méthode

Set controller class
public setControllerClass ( string $class ) : MvcEvent
$class string
Résultat MvcEvent

setError() public méthode

Set the error message (indicating error in handling request)
public setError ( string $message ) : MvcEvent
$message string
Résultat MvcEvent

setRequest() public méthode

Set request
public setRequest ( Zend\Stdlib\RequestInterface $request ) : MvcEvent
$request Zend\Stdlib\RequestInterface
Résultat MvcEvent

setResponse() public méthode

Set response
public setResponse ( Zend\Stdlib\ResponseInterface $response ) : MvcEvent
$response Zend\Stdlib\ResponseInterface
Résultat MvcEvent

setResult() public méthode

Set result
public setResult ( mixed $result ) : MvcEvent
$result mixed
Résultat MvcEvent

setRouteMatch() public méthode

Set route match
public setRouteMatch ( Zend\Router\RouteMatch $matches ) : MvcEvent
$matches Zend\Router\RouteMatch
Résultat MvcEvent

setRouter() public méthode

Set router
public setRouter ( Zend\Router\RouteStackInterface $router ) : MvcEvent
$router Zend\Router\RouteStackInterface
Résultat MvcEvent

setViewModel() public méthode

Set the view model
public setViewModel ( Zend\View\Model\ModelInterface $viewModel ) : MvcEvent
$viewModel Zend\View\Model\ModelInterface
Résultat MvcEvent

Property Details

$application protected_oe property

protected $application

$request protected_oe property

protected RequestInterface,Zend\Stdlib $request
Résultat Zend\Stdlib\RequestInterface

$response protected_oe property

protected ResponseInterface,Zend\Stdlib $response
Résultat Zend\Stdlib\ResponseInterface

$result protected_oe property

protected mixed $result
Résultat mixed

$routeMatch protected_oe property

protected null|RouteMatch,Zend\Router $routeMatch
Résultat null | Zend\Router\RouteMatch

$router protected_oe property

protected RouteStackInterface,Zend\Router $router
Résultat Zend\Router\RouteStackInterface

$viewModel protected_oe property

protected ModelInterface,Zend\View\Model $viewModel
Résultat Zend\View\Model\ModelInterface