symfony API

sfAutoload Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 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.

sfAutoload class.

Method Summary

  • boolean autoload($class)
    Handles autoloading of classes that have been specified in autoload.yml.
  • string|null getClassPath($class)
    Returns the path where a particular class can be found.
  • sfCoreAutoload getInstance()
    Retrieves the singleton instance of this class.
  • boolean loadClass($class)
    Tries to load a class that has been specified in autoload.yml.
  • void register()
    Register sfAutoload in spl autoloader.
  • boolean reloadClasses($force)
    Reloads the autoloader.
  • setClassPath($class, $path)
    Sets the path for a particular class.
  • void unregister()
    Unregister sfAutoload from spl autoloader.
  • __construct()

Method Details

  • (boolean) autoload ($class)

    $class A class name.

    Handles autoloading of classes that have been specified in autoload.yml.

    returns Returns true if the class has been loaded

  • (string|null) getClassPath ($class)

    $class A PHP class name

    Returns the path where a particular class can be found.

    returns An absolute path

  • (sfCoreAutoload) getInstance ()

    Retrieves the singleton instance of this class.

    returns A sfCoreAutoload implementation instance.

  • (boolean) loadClass ($class)

    $class A class name.

    Tries to load a class that has been specified in autoload.yml.

    returns Returns true if the class has been loaded

  • (void) register ()

    Register sfAutoload in spl autoloader.

  • (boolean) reloadClasses ($force)

    $force Whether to force a reload

    Reloads the autoloader.

    returns True if the reload was successful, otherwise false

  • setClassPath ($class, $path)

    $class A PHP class name
    $path An absolute path

    Sets the path for a particular class.

  • (void) unregister ()

    Unregister sfAutoload from spl autoloader.

  • __construct ()