lib/timesplinter/tsfw/db/DB.php
protected function triggerListeners($method, array $params = array())
	{
		if($this->muteListeners === true)
			return;

		// Mute all the listeners cause we don't want listeners called in listeners
		// If we do so: unmute the listeners in the listener method itself
		$this->muteListeners = true;

		foreach($this->listeners as $l) {
			/** @var DBListener $l */
			call_user_func_array(array($l, $method), $params);
		}

		// Unmute listeners cause from now on we're not in a listener method anymore
		$this->muteListeners = false;
	}
protected function triggerListeners($method, array $params = array())
	{
		if($this->muteListeners === true)
			return;

		// Mute all the listeners cause we don't want listeners called in listeners
		// If we do so: unmute the listeners in the listener method itself
		$this->muteListeners = true;

		foreach($this->listeners as $l) {
			/** @var DBListener $l */
			call_user_func_array(array($l, $method), $params);
		}

		// Unmute listeners cause from now on we're not in a listener method anymore
		$this->muteListeners = false;
	}
protected function triggerListeners ( $ method , array $ params = array ( ) ) { if ( $ this -> muteListeners === true ) return ; // Mute all the listeners cause we don't want listeners called in listeners // If we do so: unmute the listeners in the listener method itself $ this -> muteListeners = true ; foreach ( $ this -> listeners as $ l ) { /** @var DBListener $l */ call_user_func_array ( array ( $ l , $ method ) , $ params ) ; } // Unmute listeners cause from now on we're not in a listener method anymore $ this -> muteListeners = false ; }
Triggers a call of a specific method from all registered listener classes if the listeners are not set to mute
@param string $method The listener method that should be called
@param array $params The parameters for the listener method
Triggers a call of a specific method from all registered listener classes if the listeners are not set to mute