PHP Класс 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.
Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
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.

Описание методов

addType() публичный Метод

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

getName() публичный Метод

Return a unique identifier for this listener.
public getName ( ) : string
Результат string Unique id.

handles() публичный Метод

Does this listener handle a certain type of message?
public handles ( string $type ) : mixed
$type string The message type in question.
Результат mixed False if this listener does not handle, the default event class if it does handle the type.

notify() абстрактный публичный Метод

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.

Описание свойств

$_handles защищенное свойство

Key is the type, value is the default class name of the Event type to use.
protected array $_handles
Результат array

$_name защищенное свойство

The base type of this listener.
protected string $_name
Результат string