public static function load($class)
    {
        $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
        $file = stream_resolve_include_path($classFile);
        if ($file && file_exists($file)) {
            require_once $file;
            return true;
        }
        return false;
    }
public static function load($class)
    {
        $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
        $file = stream_resolve_include_path($classFile);
        if ($file && file_exists($file)) {
            require_once $file;
            return true;
        }
        return false;
    }
public static function load ( $ class ) { $ classFile = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ class ) . '.php' ; $ file = stream_resolve_include_path ( $ classFile ) ; if ( $ file && file_exists ( $ file ) ) { require_once $ file ; return true ; } return false ; }
Called by php to load a given class. Returns true if the class was
successfully loaded.

@return boolean
Called by php to load a given class . Returns true if the class was successfully loaded .