Horde_Notification_Handler::get PHP Method

get() public method

Returns the current Listener object for a given listener type.
public get ( string $type ) : mixed
$type string The listener type.
return mixed A Horde_Notification_Listener object, or null if $type listener is not attached.
    public function get($type)
    {
        foreach ($this->_listeners as $listener) {
            if ($listener->handles($type)) {
                return $listener;
            }
        }
        return null;
    }