You are here

abstract class xautoload_Plugin_WithKillswitch in X Autoload 7.2

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_Plugin_WithKillswitch

File

lib/Plugin/WithKillswitch.php, line 10

View source
abstract class xautoload_Plugin_WithKillswitch implements xautoload_Plugin_Interface {
  protected $map;
  protected $key;
  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.
   */
  function setKillswitch($map, $key, $id) {
    $this->map = $map;
    $this->key = $key;
    $this->id = $id;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
xautoload_Plugin_Interface::findFile function Find the file for a class that in PSR-0 or PEAR would be in $psr_0_root . '/' . $first_part . $second_part 5
xautoload_Plugin_WithKillswitch::$id protected property
xautoload_Plugin_WithKillswitch::$key protected property
xautoload_Plugin_WithKillswitch::$map protected property
xautoload_Plugin_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.