[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZOperationHandler class 4 // 5 // Created on: <06-Oct-2002 16:25:10 amos> 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 ezoperationhandler.php 30 */ 31 32 /*! 33 \class eZOperationHandler ezoperationhandler.php 34 \brief The class eZOperationHandler does 35 36 */ 37 38 include_once ( 'lib/ezutils/classes/ezmoduleoperationinfo.php' ); 39 40 class eZOperationHandler 41 { 42 /*! 43 Constructor 44 */ 45 function eZOperationHandler() 46 { 47 } 48 49 function &moduleOperationInfo( $moduleName, $useTriggers = true ) 50 { 51 $globalModuleOperationList =& $GLOBALS['eZGlobalModuleOperationList']; 52 if ( !isset( $globalModuleOperationList ) ) 53 $globalModuleOperationList = array(); 54 if ( isset( $globalModuleOperationList[$moduleName] ) ) 55 return $globalModuleOperationList[$moduleName]; 56 $moduleOperationInfo = new eZModuleOperationInfo( $moduleName, $useTriggers ); 57 $moduleOperationInfo->loadDefinition(); 58 $globalModuleOperationList[$moduleName] =& $moduleOperationInfo; 59 return $moduleOperationInfo; 60 } 61 62 function execute( $moduleName, $operationName, $operationParameters, $lastTriggerName = null, $useTriggers = true ) 63 { 64 $moduleOperationInfo =& eZOperationHandler::moduleOperationInfo( $moduleName, $useTriggers ); 65 if ( !$moduleOperationInfo->isValid() ) 66 { 67 eZDebug::writeError( "Cannot execute operation '$operationName' in module '$moduleName', no valid data", 68 'eZOperationHandler::execute' ); 69 return null; 70 } 71 return $moduleOperationInfo->execute( $operationName, $operationParameters, $lastTriggerName, $useTriggers ); 72 } 73 } 74 75 ?>
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 |