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 class eZShopAccountHandler
00032 {
00033 function eZShopAccountHandler()
00034 {
00035
00036 }
00037
00038
00039
00040
00041 function &instance()
00042 {
00043 $accountHandler = null;
00044 if ( eZExtension::findExtensionType( array( 'ini-name' => 'shopaccount.ini',
00045 'repository-group' => 'HandlerSettings',
00046 'repository-variable' => 'Repositories',
00047 'extension-group' => 'HandlerSettings',
00048 'extension-variable' => 'ExtensionRepositories',
00049 'type-group' => 'AccountSettings',
00050 'type-variable' => 'Handler',
00051 'alias-group' => 'AccountSettings',
00052 'alias-variable' => 'Alias',
00053 'subdir' => 'shopaccounthandlers',
00054 'type-directory' => false,
00055 'extension-subdir' => 'shopaccounthandlers',
00056 'suffix-name' => 'shopaccounthandler.php' ),
00057 $out ) )
00058 {
00059 $filePath = $out['found-file-path'];
00060 include_once( $filePath );
00061 $class = $out['type'] . 'ShopAccountHandler';
00062 $accountHandler = new $class( );
00063 }
00064 else
00065 {
00066 include_once( 'kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php' );
00067 $accountHandler = new eZDefaultShopAccountHandler();
00068 }
00069 return $accountHandler;
00070 }
00071 }
00072
00073 ?>