public function load($class)
    {
        $path = str_replace('\\', DS, $class);
        $path = '##replace##/' . trim($path, DS) . '.php';
        $path = str_replace('/', DS, $path);

        foreach ($this->getLocations() as $subPath) {
            $actualPath = str_replace('##replace##', $subPath, $path);
            if (file_exists($actualPath)) {
                require_once $actualPath;
                return true;
            }
        }
        return false;
    }
public function load($class)
    {
        $path = str_replace('\\', DS, $class);
        $path = '##replace##/' . trim($path, DS) . '.php';
        $path = str_replace('/', DS, $path);

        foreach ($this->getLocations() as $subPath) {
            $actualPath = str_replace('##replace##', $subPath, $path);
            if (file_exists($actualPath)) {
                require_once $actualPath;
                return true;
            }
        }
        return false;
    }
public function load ( $ class ) { $ path = str_replace ( '\\' , DS , $ class ) ; $ path = '##replace##/' . trim ( $ path , DS ) . '.php' ; $ path = str_replace ( '/' , DS , $ path ) ; foreach ( $ this -> getLocations ( ) as $ subPath ) { $ actualPath = str_replace ( '##replace##' , $ subPath , $ path ) ; if ( file_exists ( $ actualPath ) ) { require_once $ actualPath ; return true ; } } return false ; }
Attempts to load the class if it exists.

@param string $class

@return bool
Attempts to load the class if it exists .