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
Показать файл Открыть проект Примеры использования класса

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

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