PHP Class eZ\Publish\Core\MVC\Symfony\Event\APIContentExceptionEvent

It allows you to handle this exception and affect a specific Response for it.
Inheritance: extends Symfony\Component\EventDispatcher\Event
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

getApiException() public méthode

public getApiException ( ) : Exception
Résultat Exception

getContentMeta() public méthode

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
Résultat array

getContentView() public méthode

public getContentView ( ) : eZ\Publish\Core\MVC\Symfony\View\View
Résultat eZ\Publish\Core\MVC\Symfony\View\View

hasContentView() public méthode

public hasContentView ( ) : boolean
Résultat boolean

setContentView() public méthode

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