This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

postHandling hook

These hooks are called right after an item has been processed by the publishing queue. They can for instance be used to delete / update data created in a preQueue hook.

Add MyPriorityHandler::cleanup() after the item has been handled::

ezpContentPublishingQueue::signals()->connect( 'postHandling', 'MyPriorityHandler::cleanup' );

Hooks can also be attached using INI settings if you want the call to be made every time::

[PublishingSettings]
AsynchronousPublishingPostHandlingHooks[]=MyPriorityHandler::cleanup

These hooks are given three parameters:

  • the content object id (integer)
  • the content object version (integer)
  • the publishing process status (as one of the ezpContentPublishingProcess::STATUS_* constants)

They're not supposed to return any value.

Geir Arne Waaler (04/03/2011 2:35 pm)

Geir Arne Waaler (29/08/2011 11:44 am)


Comments

There are no comments.