public static function loadClass($class) {
        $class_file = str_replace(array('\\', '_'), '/', $class).'.php';

        foreach (self::$dirs as $dir) {
            $file = $dir.'/'.$class_file;
            if (file_exists($file)) {
                require $file;
                return;
            }
        }
    }
public static function loadClass($class) {
        $class_file = str_replace(array('\\', '_'), '/', $class).'.php';

        foreach (self::$dirs as $dir) {
            $file = $dir.'/'.$class_file;
            if (file_exists($file)) {
                require $file;
                return;
            }
        }
    }
public static function loadClass ( $ class ) { $ class_file = str_replace ( array ( '\\' , '_' ) , '/' , $ class ) . '.php' ; foreach ( self :: $ dirs as $ dir ) { $ file = $ dir . '/' . $ class_file ; if ( file_exists ( $ file ) ) { require $ file ; return ; } } }
Autoloads classes.

@param string $class Class name
Autoloads classes .