PHP 클래스 Zend\Mvc\View\Http\ExceptionStrategy

상속: extends Zend\EventManager\AbstractListenerAggregate
파일 보기 프로젝트 열기: zendframework/zend-mvc 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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