library/core/class.pluginmanager.php
public function RegisterHandler($HandlerClassName, $HandlerMethodName, $EventClassName = '', $EventName = '', $EventHandlerType = '') {
      $HandlerKey = $HandlerClassName.'.'.$HandlerMethodName;
      $EventKey = strtolower($EventClassName == '' ? $HandlerMethodName : $EventClassName.'_'.$EventName.'_'.$EventHandlerType);

      // Create a new array of handler class names if it doesn't exist yet.
      if (array_key_exists($EventKey, $this->_EventHandlerCollection) === FALSE)
         $this->_EventHandlerCollection[$EventKey] = array();

      // Specify this class as a handler for this method if it hasn't been done yet.
      if (in_array($HandlerKey, $this->_EventHandlerCollection[$EventKey]) === FALSE)
         $this->_EventHandlerCollection[$EventKey][] = $HandlerKey;
   }
public function RegisterHandler($HandlerClassName, $HandlerMethodName, $EventClassName = '', $EventName = '', $EventHandlerType = '') {
      $HandlerKey = $HandlerClassName.'.'.$HandlerMethodName;
      $EventKey = strtolower($EventClassName == '' ? $HandlerMethodName : $EventClassName.'_'.$EventName.'_'.$EventHandlerType);

      // Create a new array of handler class names if it doesn't exist yet.
      if (array_key_exists($EventKey, $this->_EventHandlerCollection) === FALSE)
         $this->_EventHandlerCollection[$EventKey] = array();

      // Specify this class as a handler for this method if it hasn't been done yet.
      if (in_array($HandlerKey, $this->_EventHandlerCollection[$EventKey]) === FALSE)
         $this->_EventHandlerCollection[$EventKey][] = $HandlerKey;
   }
public function RegisterHandler ( $ HandlerClassName , $ HandlerMethodName , $ EventClassName = '' , $ EventName = '' , $ EventHandlerType = '' ) { $ HandlerKey = $ HandlerClassName . '.' . $ HandlerMethodName ; $ EventKey = strtolower ( $ EventClassName == '' ? $ HandlerMethodName : $ EventClassName . '_' . $ EventName . '_' . $ EventHandlerType ) ; // Create a new array of handler class names if it doesn't exist yet. if ( array_key_exists ( $ EventKey , $ this -> _EventHandlerCollection ) === FALSE ) $ this -> _EventHandlerCollection [ $ EventKey ] = array ( ) ; // Specify this class as a handler for this method if it hasn't been done yet. if ( in_array ( $ HandlerKey , $ this -> _EventHandlerCollection [ $ EventKey ] ) === FALSE ) $ this -> _EventHandlerCollection [ $ EventKey ] [ ] = $ HandlerKey ; }
Registers a plugin method name as a handler.
@param string $HandlerClassName The name of the plugin class that will handle the event.
@param string $HandlerMethodName The name of the plugin method being registered to handle the event.
@param string $EventClassName The name of the class that will fire the event.
@param string $EventName The name of the event that will fire.
@param string $EventHandlerType The type of event handler.
Registers a plugin method name as a handler .