PHP Class Zend\Mvc\View\Http\ExceptionStrategy

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

Protected Properties

Свойство Type Description
$displayExceptions boolean Display exceptions?
$exceptionTemplate string Name of exception template

Méthodes publiques

Méthode Description
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) {@inheritDoc}
displayExceptions ( ) : boolean Should we display exceptions in error pages?
getExceptionTemplate ( ) : string Retrieve the exception template
prepareExceptionViewModel ( MvcEvent $e ) : void Create an exception view model, and set the HTTP status code
setDisplayExceptions ( boolean $displayExceptions ) : ExceptionStrategy Flag: display exceptions in error pages?
setExceptionTemplate ( string $exceptionTemplate ) : ExceptionStrategy Set the exception template

Method Details

attach() public méthode

{@inheritDoc}
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 )
$events Zend\EventManager\EventManagerInterface

displayExceptions() public méthode

Should we display exceptions in error pages?
public displayExceptions ( ) : boolean
Résultat boolean

getExceptionTemplate() public méthode

Retrieve the exception template
public getExceptionTemplate ( ) : string
Résultat string

prepareExceptionViewModel() public méthode

Create an exception view model, and set the HTTP status code
public prepareExceptionViewModel ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
Résultat void

setDisplayExceptions() public méthode

Flag: display exceptions in error pages?
public setDisplayExceptions ( boolean $displayExceptions ) : ExceptionStrategy
$displayExceptions boolean
Résultat ExceptionStrategy

setExceptionTemplate() public méthode

Set the exception template
public setExceptionTemplate ( string $exceptionTemplate ) : ExceptionStrategy
$exceptionTemplate string
Résultat ExceptionStrategy

Property Details

$displayExceptions protected_oe property

Display exceptions?
protected bool $displayExceptions
Résultat boolean

$exceptionTemplate protected_oe property

Name of exception template
protected string $exceptionTemplate
Résultat string