SDK
SDK PHP v3.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

removeAllListeners #

Removes all listeners, either from a specific event or from all events


removeAllListeners([event]) #

Arguments Type Description
event string One of the event described in the Event Handling section of this documentation

Return Value #

Returns the Kuzzle object to allow chaining.

Usage #

Copied to clipboard!
<?php
use \Kuzzle\Kuzzle;
$kuzzle = new Kuzzle('localhost');
// Removes all listeners on the "queryError" global event
$kuzzle->removeAllListeners('queryError');
// Removes all listeners on all global events
$kuzzle->removeAllListeners();