/var/www/hkosl.com/imusiccircle/paypal/PPAutoloader.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
     
/**
      * Basic class-map auto loader generated by install.php.
      * Do not modify.
      */
     
class PPAutoloader {
        private static 
$vendorDir '';
        private static 
$map = array();

        public static function 
loadClass($class) {
            if (
'\\' == $class[0]) {
                
$class substr($class1);
            }
            
            if (
false !== $pos strrpos($class'\\')) {
                
// namespaced class name
                
$classPath str_replace('\\'DIRECTORY_SEPARATORsubstr($class0$pos)) . DIRECTORY_SEPARATOR;
                
$className substr($class$pos 1);
            } else {
                
// PEAR-like class name
                
$classPath null;
                
$className $class;
            }
            
            
$classPath .= str_replace('_'DIRECTORY_SEPARATOR$className) . '.php';
            foreach (
self::$map as $prefix => $dirs) {
                if (
=== strpos($class$prefix)) {
                    foreach (
$dirs as $dir) {
                        if (
file_exists($dir DIRECTORY_SEPARATOR $classPath)) {
                            include 
$dir DIRECTORY_SEPARATOR $classPath;
                            return;
                        }
                    }
                }
            }
        }

        public static function 
register() {
            
self::$vendorDir dirname(__FILE__);
             
self::$map = array (
  
'PayPal' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-sdk-core-php-811c13c/lib/',
  ),
  
'PayPal\\CoreComponentTypes' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/',
  ),
  
'PayPal\\EBLBaseComponents' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/',
  ),
  
'PayPal\\EnhancedDataTypes' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/',
  ),
  
'PayPal\\PayPalAPI' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/',
  ),
  
'PayPal\\Service' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-merchant-sdk-php-251a6bd/lib/',
    
=> self::$vendorDir .'/lib//paypal-permissions-sdk-php-eef386c/lib/',
  ),
  
'PayPal\\Types' => 
  array (
    
=> self::$vendorDir .'/lib//paypal-permissions-sdk-php-eef386c/lib/',
  ),
);
            
spl_autoload_register(array(__CLASS__'loadClass'), true);
        }
}