123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
-
-
-
-
- class Raven_Autoloader
- {
-
-
- public static function register()
- {
- spl_autoload_register(array('Raven_Autoloader', 'autoload'));
- }
-
-
-
- public static function autoload($class)
- {
- if (substr($class, 0, 6) !== 'Raven_') {
- return;
- }
-
- $file = dirname(__FILE__).'/../'.str_replace(array('_', "\0"), array('/', ''), $class).'.php';
- if (is_file($file)) {
-
- require $file;
- }
- }
- }
|