public static function addListeners($objOrClass)
    {
        self::getAllListeners(); //fill cache
        if ($objOrClass instanceof Kwf_Events_Subscriber) {
            self::_addListenersFromSubscribers(self::$_listeners, array($objOrClass));
        } else if (is_string($objOrClass)) {
            if (is_instance_of($objOrClass, 'Kwf_Model_Interface')) {
                self::_addListenersFromSubscribers(self::$_listeners,
                    self::_getSubscribersFromModel($objOrClass)
                );
            } else if (is_instance_of($objOrClass, 'Kwf_Component_Abstract')) {
                self::_addListenersFromSubscribers(self::$_listeners,
                    self::_getSubscribersFromComponent($objOrClass)
                );
            }
        }
    }
public static function addListeners($objOrClass)
    {
        self::getAllListeners(); //fill cache
        if ($objOrClass instanceof Kwf_Events_Subscriber) {
            self::_addListenersFromSubscribers(self::$_listeners, array($objOrClass));
        } else if (is_string($objOrClass)) {
            if (is_instance_of($objOrClass, 'Kwf_Model_Interface')) {
                self::_addListenersFromSubscribers(self::$_listeners,
                    self::_getSubscribersFromModel($objOrClass)
                );
            } else if (is_instance_of($objOrClass, 'Kwf_Component_Abstract')) {
                self::_addListenersFromSubscribers(self::$_listeners,
                    self::_getSubscribersFromComponent($objOrClass)
                );
            }
        }
    }
public static function addListeners ( $ objOrClass ) { self :: getAllListeners ( ) ; //fill cache if ( $ objOrClass instanceof Kwf_Events_Subscriber ) { self :: _addListenersFromSubscribers ( self :: $ _listeners , array ( $ objOrClass ) ) ; } else if ( is_string ( $ objOrClass ) ) { if ( is_instance_of ( $ objOrClass , 'Kwf_Model_Interface' ) ) { self :: _addListenersFromSubscribers ( self :: $ _listeners , self :: _getSubscribersFromModel ( $ objOrClass ) ) ; } else if ( is_instance_of ( $ objOrClass , 'Kwf_Component_Abstract' ) ) { self :: _addListenersFromSubscribers ( self :: $ _listeners , self :: _getSubscribersFromComponent ( $ objOrClass ) ) ; } } }
Add an additional event subscriber, can be used by unit tests

obj
Add an additional event subscriber can be used by unit tests