symfony API

sfAutoload Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

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

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) Browse code

    $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) Browse code

    $class A PHP class name

    Returns the path where a particular class can be found.

    returns An absolute path

  • (sfCoreAutoload) getInstance () Browse code

    Retrieves the singleton instance of this class.

    returns A sfCoreAutoload implementation instance.

  • (boolean) loadClass ($class) Browse code

    $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 () Browse code

    Register sfAutoload in spl autoloader.

  • (boolean) reloadClasses ($force) Browse code

    $force Whether to force a reload

    Reloads the autoloader.

    returns True if the reload was successful, otherwise false

  • 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 sfAutoload from spl autoloader.

  • __construct () Browse code