code/libraries/joomlatools/library/event/subscriber/abstract.php
public static function getEventListeners()
    {
        $listeners = array();

        $reflection = new ReflectionClass(get_called_class());
        foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method)
        {
            if(substr($method->name, 0, 2) == 'on') {
               $listeners[] = $method->name;
            }
        }

        return $listeners;
    }
public static function getEventListeners()
    {
        $listeners = array();

        $reflection = new ReflectionClass(get_called_class());
        foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method)
        {
            if(substr($method->name, 0, 2) == 'on') {
               $listeners[] = $method->name;
            }
        }

        return $listeners;
    }
public static function getEventListeners ( ) { $ listeners = array ( ) ; $ reflection = new ReflectionClass ( get_called_class ( ) ) ; foreach ( $ reflection -> getMethods ( ReflectionMethod :: IS_PUBLIC ) as $ method ) { if ( substr ( $ method -> name , 0 , 2 ) == 'on' ) { $ listeners [ ] = $ method -> name ; } } return $ listeners ; }
Get the event listeners

@return array
Get the event listeners