Esempio 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;
 }
 function destroy()
 {
     Dispatcher::unregister(PluginEvent::getClass(), $this);
     parent::destroy();
 }