public function emit($signal, $params = null)
  {
    if(!$this->hasHandlers($signal))
    {
      return;
    }

    if(!is_array($params))
    {
      $params = func_get_args();
      $params = array_slice($params, 1);
    }

    foreach($this->sigslots[$signal] as $slot)
    {
      $return = $slot->call($params);
    }

    return $return;
  }
public function emit($signal, $params = null)
  {
    if(!$this->hasHandlers($signal))
    {
      return;
    }

    if(!is_array($params))
    {
      $params = func_get_args();
      $params = array_slice($params, 1);
    }

    foreach($this->sigslots[$signal] as $slot)
    {
      $return = $slot->call($params);
    }

    return $return;
  }
public function emit ( $ signal , $ params = null ) { if ( ! $ this -> hasHandlers ( $ signal ) ) { return ; } if ( ! is_array ( $ params ) ) { $ params = func_get_args ( ) ; $ params = array_slice ( $ params , 1 ) ; } foreach ( $ this -> sigslots [ $ signal ] as $ slot ) { $ return = $ slot -> call ( $ params ) ; } return $ return ; }
Emits a signal with a given set of parameters.

@todo: Confirm / fix $return is set to last $slot->call() return value.
It appears all previous calls before last are lost / ignored.

@param  string $signal
@param  mixed  $params
@return mixed
Emits a signal with a given set of parameters .