예제 #1
0
파일: Padl.php 프로젝트: vienis/padl
 /**
  * Internal autoloader for spl_autoload_register().
  *
  * @param string $class The class to load
  *
  * @return void
  */
 public static function autoload($class)
 {
     $path = dirname(__FILE__) . '/' . str_replace('\\', '/', $class) . '.php';
     if (!file_exists($path)) {
         return;
     }
     if (self::$initPath && !self::$initialized) {
         self::$initialized = true;
         require self::$initPath;
     }
     require_once $path;
 }