Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezpublishtype.php
Go to the documentation of this file.
1 <?php
17 class eZPublishType extends eZNotificationEventType
18 {
19 const NOTIFICATION_TYPE_STRING = 'ezpublish';
20
21 public function __construct()
22 {
23 parent::__construct( self::NOTIFICATION_TYPE_STRING );
24 }
25
26 function initializeEvent( $event, $params )
27 {
28 eZDebugSetting::writeDebug( 'kernel-notification', $params, 'params for type' );
29 $event->setAttribute( 'data_int1', $params['object'] );
30 $event->setAttribute( 'data_int2', $params['version'] );
31 }
32
33 function eventContent( $event )
34 {
35 return eZContentObjectVersion::fetchVersion( $event->attribute( 'data_int2' ), $event->attribute( 'data_int1' ) );
36 }
37 }
38
39 eZNotificationEventType::register( eZPublishType::NOTIFICATION_TYPE_STRING, 'eZPublishType' );
40
41 ?>
eZContentObjectVersion\fetchVersion
static fetchVersion( $version, $contentObjectID, $asObject=true)
Definition: ezcontentobjectversion.php:166
eZDebugSetting\writeDebug
static writeDebug( $conditionName, $string, $label="")
Definition: ezdebugsetting.php:127
eZNotificationEventType
The class eZNotificationEventType does.
Definition: eznotificationeventtype.php:18
eZNotificationEventType\register
static register( $notificationTypeString, $className)
Definition: eznotificationeventtype.php:166
eZPublishType
The class eZPublishType does.
Definition: ezpublishtype.php:18
eZPublishType\initializeEvent
initializeEvent( $event, $params)
Definition: ezpublishtype.php:26
eZPublishType\__construct
__construct()
Definition: ezpublishtype.php:21
eZPublishType\NOTIFICATION_TYPE_STRING
const NOTIFICATION_TYPE_STRING
Definition: ezpublishtype.php:19
eZPublishType\eventContent
eventContent( $event)
Definition: ezpublishtype.php:33
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.