gear/Core/Autoloader.php
/**
     * Load the class file for a given class name.
     *
     * @param string $className The fully qualified class name.
     *
     * @return boolean|string False if not found class file, the class file otherwise.
     */
Load the class file for a given class name.
@param string $className The fully qualified class name.

@return boolean|string False if not found class file, the class file otherwise.
Load the class file for a given class name . @param string $className The fully qualified class name . @return boolean|string False if not found class file the class file otherwise .
public function loadClass($className)
    {
        $prefix = $className;
        while (false !== ($pos = strrpos($prefix, '\\'))) {
            $prefix = substr($className, 0, $pos + 1);
            $relativeClass = substr($className, $pos + 1);
            $mappedFile = $this->loadMappedFile($prefix, $relativeClass);
            if ($mappedFile !== false) {
                return $mappedFile;
            }
            $prefix = rtrim($prefix, '\\');
        }
        return false;
    }
public function loadClass ( $ className ) { $ prefix = $ className ; while ( false !== ( $ pos = strrpos ( $ prefix , '\\' ) ) ) { $ prefix = substr ( $ className , 0 , $ pos + 1 ) ; $ relativeClass = substr ( $ className , $ pos + 1 ) ; $ mappedFile = $ this -> loadMappedFile ( $ prefix , $ relativeClass ) ; if ( $ mappedFile !== false ) { return $ mappedFile ; } $ prefix = rtrim ( $ prefix , '\\' ) ; } return false ; }
Load the class file for a given class name.
Load the class file for a given class name .