[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/classes/ -> ezshopaccounthandler.php (source)

   1  <?php
   2  //
   3  // Definition of eZShopAccountHandler class
   4  //
   5  // Created on: <12-Feb-2003 16:50:52 bf>
   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  class eZShopAccountHandler
  30  {
  31      function eZShopAccountHandler()
  32      {
  33  
  34      }
  35  
  36      /*!
  37       returns the current shop account instance
  38      */
  39      function &instance()
  40      {
  41          $accountHandler = null;
  42          if ( eZExtension::findExtensionType( array( 'ini-name' => 'shopaccount.ini',
  43                                                      'repository-group' => 'HandlerSettings',
  44                                                      'repository-variable' => 'Repositories',
  45                                                      'extension-group' => 'HandlerSettings',
  46                                                      'extension-variable' => 'ExtensionRepositories',
  47                                                      'type-group' => 'AccountSettings',
  48                                                      'type-variable' => 'Handler',
  49                                                      'alias-group' => 'AccountSettings',
  50                                                      'alias-variable' => 'Alias',
  51                                                      'subdir' => 'shopaccounthandlers',
  52                                                      'type-directory' => false,
  53                                                      'extension-subdir' => 'shopaccounthandlers',
  54                                                      'suffix-name' => 'shopaccounthandler.php' ),
  55                                               $out ) )
  56          {
  57              $filePath = $out['found-file-path'];
  58              include_once( $filePath );
  59              $class = $out['type'] . 'ShopAccountHandler';
  60              $accountHandler = new $class( );
  61          }
  62          else
  63          {
  64              include_once ( 'kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php' );
  65              $accountHandler = new eZDefaultShopAccountHandler();
  66          }
  67          return $accountHandler;
  68      }
  69  }
  70  
  71  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7