library/core/class.pluginmanager.php
public function CallEventHandlers($Sender, $EventClassName, $EventName, $EventHandlerType = 'Handler', $Options = array()) {
      $Return = FALSE;

      // Look through $this->_EventHandlerCollection for relevant handlers
      if ($this->CallEventHandler($Sender, $EventClassName, $EventName, $EventHandlerType))
         $Return = TRUE;

      // Look for "Base" (aka any class that has $EventName)
      if ($this->CallEventHandler($Sender, 'Base', $EventName, $EventHandlerType))
         $Return = TRUE;

      // Look for Wildcard event handlers
      $WildEventKey = $EventClassName.'_'.$EventName.'_'.$EventHandlerType;
      if ($this->CallEventHandler($Sender, 'Base', 'All', $EventHandlerType, $WildEventKey))
         $Return = TRUE;
      if ($this->CallEventHandler($Sender, $EventClassName, 'All', $EventHandlerType, $WildEventKey))
         $Return = TRUE;

      return $Return;
   }
public function CallEventHandlers($Sender, $EventClassName, $EventName, $EventHandlerType = 'Handler', $Options = array()) {
      $Return = FALSE;

      // Look through $this->_EventHandlerCollection for relevant handlers
      if ($this->CallEventHandler($Sender, $EventClassName, $EventName, $EventHandlerType))
         $Return = TRUE;

      // Look for "Base" (aka any class that has $EventName)
      if ($this->CallEventHandler($Sender, 'Base', $EventName, $EventHandlerType))
         $Return = TRUE;

      // Look for Wildcard event handlers
      $WildEventKey = $EventClassName.'_'.$EventName.'_'.$EventHandlerType;
      if ($this->CallEventHandler($Sender, 'Base', 'All', $EventHandlerType, $WildEventKey))
         $Return = TRUE;
      if ($this->CallEventHandler($Sender, $EventClassName, 'All', $EventHandlerType, $WildEventKey))
         $Return = TRUE;

      return $Return;
   }
public function CallEventHandlers ( $ Sender , $ EventClassName , $ EventName , $ EventHandlerType = 'Handler' , $ Options = array ( ) ) { $ Return = FALSE ; // Look through $this->_EventHandlerCollection for relevant handlers if ( $ this -> CallEventHandler ( $ Sender , $ EventClassName , $ EventName , $ EventHandlerType ) ) $ Return = TRUE ; // Look for "Base" (aka any class that has $EventName) if ( $ this -> CallEventHandler ( $ Sender , 'Base' , $ EventName , $ EventHandlerType ) ) $ Return = TRUE ; // Look for Wildcard event handlers $ WildEventKey = $ EventClassName . '_' . $ EventName . '_' . $ EventHandlerType ; if ( $ this -> CallEventHandler ( $ Sender , 'Base' , 'All' , $ EventHandlerType , $ WildEventKey ) ) $ Return = TRUE ; if ( $ this -> CallEventHandler ( $ Sender , $ EventClassName , 'All' , $ EventHandlerType , $ WildEventKey ) ) $ Return = TRUE ; return $ Return ; }
Transfer control to the plugins

Looks through $this->_EventHandlerCollection for matching event
signatures to handle. If it finds any, it executes them in the order it
found them. It instantiates any plugins and adds them as properties to
this class (unless they were previously instantiated), and then calls
the handler in question.

@param object The object that fired the event being handled.
@param string The name of the class that fired the event being handled.
@param string The name of the event being fired.
@param string The type of handler being fired (Handler, Before, After).
@return bool True if an event was executed.
Transfer control to the plugins