[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZNotificationEventHandler class 4 // 5 // Created on: <09-May-2003 16:06:26 sp> 6 // 7 // SOFTWARE NAME: eZ publish 8 // SOFTWARE RELEASE: 3.9.0 9 // BUILD VERSION: 17785 10 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 11 // SOFTWARE LICENSE: GNU General Public License v2.0 12 // NOTICE: > 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of version 2.0 of the GNU General 15 // Public License as published by the Free Software Foundation. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of version 2.0 of the GNU General 23 // Public License along with this program; if not, write to the Free 24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 // MA 02110-1301, USA. 26 // 27 // 28 29 /*! \file eznotificationeventhandler.php 30 */ 31 32 /*! 33 \class eZNotificationEventHandler eznotificationeventhandler.php 34 \brief The class eZNotificationEventHandler does 35 36 */ 37 38 define( 'EZ_NOTIFICATIONEVENTHANDLER_EVENT_HANDLED', 0 ); 39 define( 'EZ_NOTIFICATIONEVENTHANDLER_EVENT_SKIPPED', 1 ); 40 define( 'EZ_NOTIFICATIONEVENTHANDLER_EVENT_UNKNOWN', 2 ); 41 define( 'EZ_NOTIFICATIONEVENTHANDLER_EVENT_ERROR', 3 ); 42 43 include_once ( 'kernel/classes/notification/eznotificationtransport.php' ); 44 45 class eZNotificationEventHandler 46 { 47 /*! 48 Constructor 49 */ 50 function eZNotificationEventHandler( $idString, $name ) 51 { 52 $this->IDString = $idString; 53 $this->Name = $name; 54 } 55 56 function attributes() 57 { 58 return array( 'id_string', 59 'name' ); 60 } 61 62 function hasAttribute( $attr ) 63 { 64 return in_array( $attr, $this->attributes() ); 65 } 66 67 function &attribute( $attr ) 68 { 69 if ( $attr == 'id_string' ) 70 { 71 return $this->IDString; 72 } 73 else if ( $attr == 'name' ) 74 { 75 return $this->Name; 76 } 77 else 78 { 79 eZDebug::writeError( "Attribute '$attr' does not exist", 'eZNotificationEventHandler::attribute' ); 80 $retValue = null; 81 return $retValue; 82 } 83 } 84 85 function handle( $event ) 86 { 87 return true; 88 } 89 90 /*! 91 Cleanup any specific tables or other resources. 92 */ 93 function cleanup() 94 { 95 } 96 97 function fetchHttpInput( &$http, &$module ) 98 { 99 return true; 100 } 101 102 function storeSettings( &$http, &$module ) 103 { 104 return true; 105 } 106 107 var $IDString = false; 108 var $Name = false; 109 } 110 111 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |