Open Monograph Press  3.3.0
Autoloader.php
1 <?php
2 
3 namespace PhpXmlRpc;
4 
9 class Autoloader
10 {
16  public static function register($prepend = false)
17  {
18  spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
19  }
20 
26  public static function autoload($class)
27  {
28  if (0 !== strpos($class, 'PhpXmlRpc\\')) {
29  return;
30  }
31 
32  if (is_file($file = __DIR__ . str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) {
33  require $file;
34  }
35  }
36 }
PhpXmlRpc\Autoloader
Definition: Autoloader.php:9
PhpXmlRpc\Autoloader\autoload
static autoload($class)
Definition: Autoloader.php:26
PhpXmlRpc
Definition: Autoloader.php:3