PHP Класс Zend\Mvc\View\Http\ExceptionStrategy

Наследование: extends Zend\EventManager\AbstractListenerAggregate
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$displayExceptions boolean Display exceptions?
$exceptionTemplate string Name of exception template

Открытые методы

Метод Описание
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

Описание методов

attach() публичный Метод

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

displayExceptions() публичный Метод

Should we display exceptions in error pages?
public displayExceptions ( ) : boolean
Результат boolean

getExceptionTemplate() публичный Метод

Retrieve the exception template
public getExceptionTemplate ( ) : string
Результат string

prepareExceptionViewModel() публичный Метод

Create an exception view model, and set the HTTP status code
public prepareExceptionViewModel ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
Результат void

setDisplayExceptions() публичный Метод

Flag: display exceptions in error pages?
public setDisplayExceptions ( boolean $displayExceptions ) : ExceptionStrategy
$displayExceptions boolean
Результат ExceptionStrategy

setExceptionTemplate() публичный Метод

Set the exception template
public setExceptionTemplate ( string $exceptionTemplate ) : ExceptionStrategy
$exceptionTemplate string
Результат ExceptionStrategy

Описание свойств

$displayExceptions защищенное свойство

Display exceptions?
protected bool $displayExceptions
Результат boolean

$exceptionTemplate защищенное свойство

Name of exception template
protected string $exceptionTemplate
Результат string