protected function loadMappedClass($class)
    {
        list($lowerClass, $upperClass) = $this->normalizeClass($class);

        // Look through registered directories
        foreach ($this->directories as $directory) {

            // If the mapped class exists, require it
            if ($this->isRealFilePath($path = $directory.DIRECTORY_SEPARATOR.$lowerClass.'.php')) {
                $this->requireClass($class, $path);

                return $path;
            }

            if ($this->isRealFilePath($path = $directory.DIRECTORY_SEPARATOR.$upperClass.'.php')) {
                $this->requireClass($class, $path);

                return TRUE;
            }
        }

        // never found it
        return FALSE;
    }
protected function loadMappedClass($class)
    {
        list($lowerClass, $upperClass) = $this->normalizeClass($class);

        // Look through registered directories
        foreach ($this->directories as $directory) {

            // If the mapped class exists, require it
            if ($this->isRealFilePath($path = $directory.DIRECTORY_SEPARATOR.$lowerClass.'.php')) {
                $this->requireClass($class, $path);

                return $path;
            }

            if ($this->isRealFilePath($path = $directory.DIRECTORY_SEPARATOR.$upperClass.'.php')) {
                $this->requireClass($class, $path);

                return TRUE;
            }
        }

        // never found it
        return FALSE;
    }
protected function loadMappedClass ( $ class ) { list ( $ lowerClass , $ upperClass ) = $ this -> normalizeClass ( $ class ) ; // Look through registered directories foreach ( $ this -> directories as $ directory ) { // If the mapped class exists, require it if ( $ this -> isRealFilePath ( $ path = $ directory . DIRECTORY_SEPARATOR . $ lowerClass . '.php' ) ) { $ this -> requireClass ( $ class , $ path ) ; return $ path ; } if ( $ this -> isRealFilePath ( $ path = $ directory . DIRECTORY_SEPARATOR . $ upperClass . '.php' ) ) { $ this -> requireClass ( $ class , $ path ) ; return TRUE ; } } // never found it return FALSE ; }
Load the mapped class for a directory prefix and relative class.

@param string $class The class name.

@return mixed bool false if no mapped file can be loaded, or the
name of the mapped file that was loaded.
Load the mapped class for a directory prefix and relative class .