Exemplo n.º 1
0
 /**
  * stop to listen for plugin events.
  */
 protected final function disablePluginEvents($events = PluginEvent::ALL)
 {
     $this->restrictIfUnloaded();
     Dispatcher::unregister(PluginEvent::getClass(), $this, $events & $this->eventsPlugins);
     $this->eventsPlugins &= ~$events;
 }
Exemplo n.º 2
0
 function destroy()
 {
     Dispatcher::unregister(PluginEvent::getClass(), $this);
     parent::destroy();
 }