public function getListeners($event)
    {
        if (!isset($this->listeners[$event]) || !is_array($this->listeners[$event])) {
            return array();
        }
        
        return $this->listeners[$event];
    }
public function getListeners($event)
    {
        if (!isset($this->listeners[$event]) || !is_array($this->listeners[$event])) {
            return array();
        }
        
        return $this->listeners[$event];
    }
public function getListeners ( $ event ) { if ( ! isset ( $ this -> listeners [ $ event ] ) || ! is_array ( $ this -> listeners [ $ event ] ) ) { return array ( ) ; } return $ this -> listeners [ $ event ] ; }
Retrieves all listeners for an event.

@param string $event
@return array
Retrieves all listeners for an event .