src/Events.php
public function listeners($event_name)
    {
        // Read in our config/events file so that we have them all!
        if (! $this->have_read_from_file)
        {
            $this->readConfigFile();
        }

        if (! isset($this->listeners[$event_name]))
        {
            return [];
        }

        // The list is not sorted
        if (! $this->listeners[$event_name][0])
        {
            // Sort it!
            array_multisort($this->listeners[$event_name][1], SORT_NUMERIC, $this->listeners[$event_name][2]);

            // Mark it as sorted already!
            $this->listeners[$event_name][0] = true;
        }

        return $this->listeners[$event_name][2];
    }
public function listeners($event_name)
    {
        // Read in our config/events file so that we have them all!
        if (! $this->have_read_from_file)
        {
            $this->readConfigFile();
        }

        if (! isset($this->listeners[$event_name]))
        {
            return [];
        }

        // The list is not sorted
        if (! $this->listeners[$event_name][0])
        {
            // Sort it!
            array_multisort($this->listeners[$event_name][1], SORT_NUMERIC, $this->listeners[$event_name][2]);

            // Mark it as sorted already!
            $this->listeners[$event_name][0] = true;
        }

        return $this->listeners[$event_name][2];
    }
public function listeners ( $ event_name ) { // Read in our config/events file so that we have them all! if ( ! $ this -> have_read_from_file ) { $ this -> readConfigFile ( ) ; } if ( ! isset ( $ this -> listeners [ $ event_name ] ) ) { return [ ] ; } // The list is not sorted if ( ! $ this -> listeners [ $ event_name ] [ 0 ] ) { // Sort it! array_multisort ( $ this -> listeners [ $ event_name ] [ 1 ] , SORT_NUMERIC , $ this -> listeners [ $ event_name ] [ 2 ] ) ; // Mark it as sorted already! $ this -> listeners [ $ event_name ] [ 0 ] = true ; } return $ this -> listeners [ $ event_name ] [ 2 ] ; }
Returns an array of listeners for a single event. They are
sorted by priority.

If the listener could not be found, returns FALSE, or TRUE if
it was removed.

@param $event_name
@return array
Returns an array of listeners for a single event . They are sorted by priority .