public function getListeners($event = null)
	{
		$event = $this->resolveEventName($event);

		if ($event)
		{
			if (isset($this->listeners[$event]))
			{
				return $this->listeners[$event]->getAll();
			}
			return array();
		}

		return $this->listeners;
	}
public function getListeners($event = null)
	{
		$event = $this->resolveEventName($event);

		if ($event)
		{
			if (isset($this->listeners[$event]))
			{
				return $this->listeners[$event]->getAll();
			}
			return array();
		}

		return $this->listeners;
	}
public function getListeners ( $ event = null ) { $ event = $ this -> resolveEventName ( $ event ) ; if ( $ event ) { if ( isset ( $ this -> listeners [ $ event ] ) ) { return $ this -> listeners [ $ event ] -> getAll ( ) ; } return array ( ) ; } return $ this -> listeners ; }
Get the listeners registered to the given event.

@param   mixed  $event  The event object or name.
@return  array  An array of registered listeners sorted according to their priorities.
Get the listeners registered to the given event .