Swift_Events_EventObject::bubbleCancelled PHP Method

bubbleCancelled() public method

Returns true if this Event will not bubble any further up the stack.
public bubbleCancelled ( ) : boolean
return boolean
    public function bubbleCancelled()
    {
        return $this->_bubbleCancelled;
    }

Usage Example

 /** Bubble $evt up the stack calling $target() on each listener */
 private function _bubble(Swift_Events_EventObject $evt, $target)
 {
     if (!$evt->bubbleCancelled() && ($listener = array_shift($this->_bubbleQueue))) {
         $listener->{$target}($evt);
         $this->_bubble($evt, $target);
     }
 }