symfony API

sfSimpleAutoload Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

sfSimpleAutoload class.

Inheritence

sfCompatAutoload  <  sfSimpleAutoload

Method Summary

  • addDirectory($dir, $ext)
    Adds a directory to the autoloading system if not yet present and give it the highest possible precedence.
  • addFile($file, $register)
    Adds a file to the autoloading system.
  • addFiles($files, $register)
    Adds files to the autoloading system.
  • boolean autoload($class)
    Handles autoloading of classes.
  • string|null getClassPath($class)
    Returns the path where a particular class can be found.
  • sfSimpleAutoload getInstance($cacheFile)
    Retrieves the singleton instance of this class.
  • loadCache()
    Loads the cache.
  • loadConfiguration($files)
    Loads configuration from the supplied files.
  • void register()
    Register sfSimpleAutoload in spl autoloader.
  • reload()
    Reloads cache.
  • removeCache()
    Removes the cache.
  • saveCache()
    Saves the cache.
  • setClassPath($class, $path)
    Sets the path for a particular class.
  • void unregister()
    Unregister sfSimpleAutoload from spl autoloader.
  • __construct()

Method Details

  • addDirectory ($dir, $ext) 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, $register) 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, $register) 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

  • (string|null) getClassPath ($class) Browse code

    $class A PHP class name

    Returns the path where a particular class can be found.

    returns An absolute path

  • (sfSimpleAutoload) getInstance ($cacheFile) 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.

  • loadConfiguration ($files) Browse code

    $files An array of autoload.yml files

    Loads configuration from the supplied files.

  • (void) 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 A PHP class name
    $path An absolute path

    Sets the path for a particular class.

  • (void) unregister () Browse code

    Unregister sfSimpleAutoload from spl autoloader.

  • __construct () Browse code