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])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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