|
eZ Publish
[4.0]
|
00001 <?php 00002 // Created on: <08-Aug-2006 15:14:44 bjorn> 00003 // 00004 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00005 // SOFTWARE NAME: eZ Publish 00006 // SOFTWARE RELEASE: 4.0.x 00007 // COPYRIGHT NOTICE: Copyright (C) 1999-2008 eZ Systems AS 00008 // SOFTWARE LICENSE: GNU General Public License v2.0 00009 // NOTICE: > 00010 // This program is free software; you can redistribute it and/or 00011 // modify it under the terms of version 2.0 of the GNU General 00012 // Public License as published by the Free Software Foundation. 00013 // 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public License for more details. 00018 // 00019 // You should have received a copy of version 2.0 of the GNU General 00020 // Public License along with this program; if not, write to the Free 00021 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00022 // MA 02110-1301, USA. 00023 // 00024 // 00025 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00026 // 00027 00028 /*! \file ezconfirmorderhandler.php 00029 */ 00030 00031 /*! 00032 \class eZConfirmOrderHandler ezconfirmorderhandler.php 00033 \brief The class eZConfirmOrderHandler does 00034 00035 */ 00036 00037 class eZConfirmOrderHandler 00038 { 00039 /*! 00040 Constructor 00041 */ 00042 function eZConfirmOrderHandler() 00043 { 00044 } 00045 00046 00047 /*! 00048 returns the current order confirmation instance 00049 */ 00050 static function instance() 00051 { 00052 $confirmOrderHandler = null; 00053 if ( eZExtension::findExtensionType( array( 'ini-name' => 'shopaccount.ini', 00054 'repository-group' => 'HandlerSettings', 00055 'repository-variable' => 'Repositories', 00056 'extension-group' => 'HandlerSettings', 00057 'extension-variable' => 'ExtensionRepositories', 00058 'type-group' => 'ConfirmOrderSettings', 00059 'type-variable' => 'Handler', 00060 'alias-group' => 'ConfirmOrderSettings', 00061 'alias-variable' => 'Alias', 00062 'subdir' => 'confirmorderhandlers', 00063 'type-directory' => false, 00064 'extension-subdir' => 'confirmorderhandlers', 00065 'suffix-name' => 'confirmorderhandler.php' ), 00066 $out ) ) 00067 { 00068 $filePath = $out['found-file-path']; 00069 include_once( $filePath ); 00070 $class = $out['type'] . 'ConfirmOrderHandler'; 00071 return new $class(); 00072 } 00073 00074 //include_once( 'kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php' ); 00075 return new eZDefaultConfirmOrderHandler(); 00076 } 00077 00078 } 00079 00080 ?>