Ejemplo n.º 1
0
 public static function register()
 {
     // canary...
     if (self::$is_registered) {
         return true;
     }
     //if
     self::$is_registered = true;
     ///self::addPath(__FILE__);
     ///self::addPath(array_reverse(explode(PATH_SEPARATOR,get_include_path())));
     self::addPostfix(array('_class.php', '.class.php', '.php', '.inc', '.class.inc'));
     return spl_autoload_register(array(__CLASS__, 'load'));
 }