eZPublishCommunityProject  2013.9
eZ\Publish\Core\MVC\Symfony\MVCEvents Class Reference

Public Attributes

const API_CONTENT_EXCEPTION = 'ezpublish.api.contentException'
 The API_CONTENT_EXCEPTION event occurs when the API throws an exception that could not be caught internally (missing field type, internal error...). More...
 
const API_SIGNAL = 'ezpublish.api.signal'
 The API_SIGNAL event occurs when the SignalSlot repository services emit a signal. More...
 
const PRE_CONTENT_VIEW = 'ezpublish.pre_content_view'
 The PRE_CONTENT_VIEW event occurs right before a view is rendered for a content, via the content view controller. More...
 
const SITEACCESS = 'ezpublish.siteaccess'
 The SITEACCESS event occurs after the SiteAccess matching has occurred. More...
 

Member Data Documentation

const eZ\Publish\Core\MVC\Symfony\MVCEvents::API_CONTENT_EXCEPTION = 'ezpublish.api.contentException'

The API_CONTENT_EXCEPTION event occurs when the API throws an exception that could not be caught internally (missing field type, internal error...).

It allows further programmatic handling (like rendering a custom view) for the exception thrown.

The event listener method receives an .

Referenced by eZ\Publish\Core\MVC\Legacy\EventListener\APIContentExceptionListener\getSubscribedEvents(), and eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController\handleViewException().

const eZ\Publish\Core\MVC\Symfony\MVCEvents::API_SIGNAL = 'ezpublish.api.signal'

The API_SIGNAL event occurs when the SignalSlot repository services emit a signal.

This make it possible to react to it, depending on which signal is emitted.

All available signals can be found under eZ namespace.

The event listener method receives a eZ instance.

Referenced by eZ\Bundle\EzPublishCoreBundle\SignalSlot\Slot\SymfonyEventConverterSlot\receive().

const eZ\Publish\Core\MVC\Symfony\MVCEvents::PRE_CONTENT_VIEW = 'ezpublish.pre_content_view'

The PRE_CONTENT_VIEW event occurs right before a view is rendered for a content, via the content view controller.

This event is triggered by the view manager and allows you to inject additional parameters to the content view template.

The event listener method receives a

See Also
eZ

Referenced by eZ\Publish\Core\MVC\Symfony\View\Manager\renderContentView().


The documentation for this class was generated from the following file: