PHP 클래스 eZ\Publish\Core\MVC\Symfony\Event\APIContentExceptionEvent

It allows you to handle this exception and affect a specific Response for it.
상속: extends Symfony\Component\EventDispatcher\Event
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Exception $apiException, array $contentMeta )
getApiException ( ) : Exception
getContentMeta ( ) : array Returns an array of metadata concerning the content that failed to load through API.
getContentView ( ) : eZ\Publish\Core\MVC\Symfony\View\View
hasContentView ( ) : boolean
setContentView ( eZ\Publish\Core\MVC\Symfony\View\View $contentView ) Injects the ContentView object to display content from.

메소드 상세

__construct() 공개 메소드

public __construct ( Exception $apiException, array $contentMeta )
$apiException Exception
$contentMeta array

getApiException() 공개 메소드

public getApiException ( ) : Exception
리턴 Exception

getContentMeta() 공개 메소드

This array includes: - contentId Content Id when applicable (not available if a location was looked up) - locationId Location Id when applicable (not available if a content was looked up) - viewType full/line/...
public getContentMeta ( ) : array
리턴 array

getContentView() 공개 메소드

public getContentView ( ) : eZ\Publish\Core\MVC\Symfony\View\View
리턴 eZ\Publish\Core\MVC\Symfony\View\View

hasContentView() 공개 메소드

public hasContentView ( ) : boolean
리턴 boolean

setContentView() 공개 메소드

It is a good idea to call {@link stopPropagation()} after that so that other listeners won't override it.
public setContentView ( eZ\Publish\Core\MVC\Symfony\View\View $contentView )
$contentView eZ\Publish\Core\MVC\Symfony\View\View