Varien_Autoload::autoload PHP Метод

autoload() публичный Метод

Load class source code
public autoload ( string $class ) : boolean
$class string
Результат boolean
    public function autoload($class)
    {
        // Prevent fatal errors when PHP has already started shutting down
        if (!isset(self::$_cache)) {
            $classFile = str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class)));
            return include $classFile . '.php';
        }
        // Get file path (from cache if available)
        $realPath = self::getFullPath($class);
        if ($realPath !== false) {
            return include self::$_BP . DIRECTORY_SEPARATOR . $realPath;
        }
        return false;
    }