symfony API

sfSimpleAutoload Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfSimpleAutoload class.

Method Summary

  • addDirectory($dir, $ext = '.php')
    Adds a directory to the autoloading system if not yet present and give it the highest possible precedence.
  • addFile($file, (Boolean) $register = true)
    Adds a file to the autoloading system.
  • addFiles($files, (Boolean) $register = true)
    Adds files to the autoloading system.
  • boolean autoload($class)
    Handles autoloading of classes.
  • getInstance($cacheFile = null)
    Retrieves the singleton instance of this class.
  • loadCache()
    Loads the cache.
  • register()
    Register sfSimpleAutoload in spl autoloader.
  • reload()
    Reloads cache.
  • removeCache()
    Removes the cache.
  • saveCache()
    Saves the cache.
  • setClassPath($class, $path)
  • unregister()
    Unregister sfSimpleAutoload from spl autoloader.
  • __construct($cacheFile = null)

Method Details

  • addDirectory ($dir, $ext = '.php') Browse code

    $dir The directory to look for classes
    $ext The extension to look for

    Adds a directory to the autoloading system if not yet present and give it the highest possible precedence.

  • addFile ($file, (Boolean) $register = true) Browse code

    $file A file path
    $register Whether to register those files as single entities (used when reloading)

    Adds a file to the autoloading system.

  • addFiles ($files, (Boolean) $register = true) Browse code

    $files An array of files
    $register Whether to register those files as single entities (used when reloading)

    Adds files to the autoloading system.

  • (boolean) autoload ($class) Browse code

    $class A class name.

    Handles autoloading of classes.

    returns Returns true if the class has been loaded

  • getInstance ($cacheFile = null) Browse code

    $cacheFile The file path to save the cache

    Retrieves the singleton instance of this class.

    returns A sfSimpleAutoload implementation instance.

  • loadCache () Browse code

    Loads the cache.

  • register () Browse code

    Register sfSimpleAutoload in spl autoloader.

  • reload () Browse code

    Reloads cache.

  • removeCache () Browse code

    Removes the cache.

  • saveCache () Browse code

    Saves the cache.

  • setClassPath ($class, $path) Browse code

    $class
    $path

  • unregister () Browse code

    Unregister sfSimpleAutoload from spl autoloader.

  • __construct ($cacheFile = null) Browse code

    $cacheFile