You are here

interface xautoload_ClassLoader_Interface in X Autoload 7.3

Behaves mostly like the Symfony ClassLoader classes.

Hierarchy

Expanded class hierarchy of xautoload_ClassLoader_Interface

All classes that implement xautoload_ClassLoader_Interface

File

lib/ClassLoader/Interface.php, line 7

View source
interface xautoload_ClassLoader_Interface {

  /**
   * Registers this instance as an autoloader.
   *
   * @param boolean $prepend
   *   If TRUE, the loader will be prepended. Otherwise, it will be appended.
   */
  function register($prepend = FALSE);

  /**
   * Unregister this instance as an autoloader.
   */
  function unregister();

  /**
   * Callback for class loading. This will include ("require") the file found.
   *
   * @param string $class
   *   The class to load.
   */
  function loadClass($class);

  /**
   * For compatibility, it is possible to use the class loader as a finder.
   *
   * @param string $class
   *   The class to find.
   *
   * @return string
   *   File where the class is assumed to be.
   */
  function findFile($class);

}

Members

Namesort descending Modifiers Type Description Overrides
xautoload_ClassLoader_Interface::findFile function For compatibility, it is possible to use the class loader as a finder. 1
xautoload_ClassLoader_Interface::loadClass function Callback for class loading. This will include ("require") the file found. 1
xautoload_ClassLoader_Interface::register function Registers this instance as an autoloader. 1
xautoload_ClassLoader_Interface::unregister function Unregister this instance as an autoloader. 1