You are here

abstract class xautoload_FinderPlugin_WithKillswitch in X Autoload 7.3

X Autoload plugins are for:

  • More exotic autoload patterns that are incompatible with PSR-0 or PEAR
  • Situations where we don't want to register a ton of namespaces, and using a plugin instead gives us performance benefits.

Hierarchy

Expanded class hierarchy of xautoload_FinderPlugin_WithKillswitch

File

lib/FinderPlugin/WithKillswitch.php, line 10

View source
abstract class xautoload_FinderPlugin_WithKillswitch implements xautoload_FinderPlugin_Interface {

  /**
   * @var xautoload_ClassFinder_Helper_Map
   */
  protected $map;

  /**
   * @var string
   */
  protected $key;

  /**
   * @var int
   */
  protected $id;

  /**
   * Allow the namespace plugin to unsubscribe or replace itself.
   * This is called by the ClassFinder itself, the moment the namespace plugin
   * is registered.
   *
   * @param xautoload_ClassFinder_Helper_Map $map
   *   Object where the thing is subscribed.
   * @param string $key
   * @param int $id
   */
  function setKillswitch($map, $key, $id) {
    $this->map = $map;
    $this->key = $key;
    $this->id = $id;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
xautoload_FinderPlugin_Interface::findFile function Find the file for a class that in PSR-0 or PEAR would be in $psr_0_root . '/' . $path_fragment . $path_suffix 2
xautoload_FinderPlugin_WithKillswitch::$id protected property
xautoload_FinderPlugin_WithKillswitch::$key protected property
xautoload_FinderPlugin_WithKillswitch::$map protected property
xautoload_FinderPlugin_WithKillswitch::setKillswitch function Allow the namespace plugin to unsubscribe or replace itself. This is called by the ClassFinder itself, the moment the namespace plugin is registered.