public function matchingListeners($eventKeyPattern)
    {
        $matchPattern = '/' . preg_quote($eventKeyPattern, '/') . '/';
        $matches = array_intersect_key(
            $this->_listeners,
            array_flip(
                preg_grep($matchPattern, array_keys($this->_listeners), 0)
            )
        );

        return $matches;
    }
public function matchingListeners($eventKeyPattern)
    {
        $matchPattern = '/' . preg_quote($eventKeyPattern, '/') . '/';
        $matches = array_intersect_key(
            $this->_listeners,
            array_flip(
                preg_grep($matchPattern, array_keys($this->_listeners), 0)
            )
        );

        return $matches;
    }
public function matchingListeners ( $ eventKeyPattern ) { $ matchPattern = '/' . preg_quote ( $ eventKeyPattern , '/' ) . '/' ; $ matches = array_intersect_key ( $ this -> _listeners , array_flip ( preg_grep ( $ matchPattern , array_keys ( $ this -> _listeners ) , 0 ) ) ) ; return $ matches ; }
Returns the listeners matching a specified pattern

@param string $eventKeyPattern Pattern to match.
@return array
Returns the listeners matching a specified pattern