PHP Class Horde_Notification_Listener, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_handles array Key is the type, value is the default class name of the Event type to use.
$_name string The base type of this listener.

Méthodes publiques

Méthode Description
addType ( string $type, string $class ) Adds message type handler.
getName ( ) : string Return a unique identifier for this listener.
handles ( string $type ) : mixed Does this listener handle a certain type of message?
notify ( array $events, array $options = [] ) Outputs the status line, sends emails, pages, etc., if there are any messages on this listener's message stack.

Method Details

addType() public méthode

Adds message type handler.
public addType ( string $type, string $class )
$type string The type identifier.
$class string A classname.

getName() public méthode

Return a unique identifier for this listener.
public getName ( ) : string
Résultat string Unique id.

handles() public méthode

Does this listener handle a certain type of message?
public handles ( string $type ) : mixed
$type string The message type in question.
Résultat mixed False if this listener does not handle, the default event class if it does handle the type.

notify() abstract public méthode

Outputs the status line, sends emails, pages, etc., if there are any messages on this listener's message stack.
abstract public notify ( array $events, array $options = [] )
$events array The list of events to handle.
$options array An array of options.

Property Details

$_handles protected_oe property

Key is the type, value is the default class name of the Event type to use.
protected array $_handles
Résultat array

$_name protected_oe property

The base type of this listener.
protected string $_name
Résultat string