PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 108
Lasso Lite – Affiliate Link Manager & Product Displays v108
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
simple-urls / libs / Raven / Autoloader.php

Autoloader.php in Lasso Lite – Affiliate Link Manager & Product Displays 108, at libs/Raven/Autoloader.php

45 lines 951 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of Raven.
5 *
6 * (c) Sentry Team
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /**
13 * Autoloads Raven classes.
14 *
15 * @package raven
16 */
17 class Lasso_Raven_Autoloader
18 {
19 /**
20 * Registers Raven_Autoloader as an SPL autoloader.
21 */
22 public static function register()
23 {
24 spl_autoload_register(array('Lasso_Raven_Autoloader', 'autoload'));
25 }
26
27 /**
28 * Handles autoloading of classes.
29 *
30 * @param string $class A class name.
31 */
32 public static function autoload($class)
33 {
34 if (substr($class, 0, 6) !== 'Raven_') {
35 return;
36 }
37
38 $file = dirname(__FILE__).'/../'.str_replace(array('_', "\0"), array('/', ''), $class).'.php';
39 if (is_file($file)) {
40 /** @noinspection PhpIncludeInspection */
41 require $file;
42 }
43 }
44 }
45