00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class eZConfirmOrderHandler
00035 {
00036
00037
00038
00039 function eZConfirmOrderHandler()
00040 {
00041 }
00042
00043
00044
00045
00046
00047 function &instance()
00048 {
00049 $confirmOrderHandler = null;
00050 if ( eZExtension::findExtensionType( array( 'ini-name' => 'shopaccount.ini',
00051 'repository-group' => 'HandlerSettings',
00052 'repository-variable' => 'Repositories',
00053 'extension-group' => 'HandlerSettings',
00054 'extension-variable' => 'ExtensionRepositories',
00055 'type-group' => 'ConfirmOrderSettings',
00056 'type-variable' => 'Handler',
00057 'alias-group' => 'ConfirmOrderSettings',
00058 'alias-variable' => 'Alias',
00059 'subdir' => 'confirmorderhandlers',
00060 'type-directory' => false,
00061 'extension-subdir' => 'confirmorderhandlers',
00062 'suffix-name' => 'confirmorderhandler.php' ),
00063 $out ) )
00064 {
00065 $filePath = $out['found-file-path'];
00066 include_once( $filePath );
00067 $class = $out['type'] . 'ConfirmOrderHandler';
00068 $confirmOrderHandler = new $class();
00069 }
00070 else
00071 {
00072 include_once( 'kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php' );
00073 $confirmOrderHandler = new eZDefaultConfirmOrderHandler();
00074 }
00075 return $confirmOrderHandler;
00076 }
00077
00078 }
00079
00080 ?>