Emitter

interface OC\Hooks\Emitter
Class Emitter
interface for all classes that are able to emit events
Implemented by:OC\User\Session OC\Files\Config\MountProviderCollection OC\Hooks\BasicEmitter
Source:lib/private/Hooks/Emitter.php#36

Methods

public OC\Hooks\Emitter::listen($scope, $method, $callback)
Source:

lib/private/Hooks/Emitter.php#44

Parameters:
  • $scope (string)
  • $method (string)
  • $callback (callable)
Returns:

void

Deprecated:

18.0.0 use \OCP\EventDispatcher\IEventDispatcher::addListener

public OC\Hooks\Emitter::removeListener($scope=null, $method=null, $callback=null)
Source:

lib/private/Hooks/Emitter.php#53

Parameters:
  • $scope (string) optional
  • $method (string) optional
  • $callback (callable) optional
Returns:

void

Deprecated:

18.0.0 use \OCP\EventDispatcher\IEventDispatcher::removeListener