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
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method 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 method

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

getApiException() public method

public getApiException ( ) : Exception
return Exception

getContentMeta() public method

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
return array

getContentView() public method

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

hasContentView() public method

public hasContentView ( ) : boolean
return boolean

setContentView() public method

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