Horde_Notification
in package
The Horde_Notification:: class provides a subject-observer pattern for raising and showing messages of different types and to different listeners.
Copyright 2001-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- $_instances : Horde_Notification
- Horde_Notification instances.
- singleton() : mixed
- Returns a reference to the global notification handler, only creating it if it doesn't already exist.
Properties
$_instances
Horde_Notification instances.
protected
static Horde_Notification
$_instances
= array()
Methods
singleton()
Returns a reference to the global notification handler, only creating it if it doesn't already exist.
public
static singleton([string $stack = 'horde_notification_stacks' ]) : mixed
This method must be invoked as: $notification = Horde_Notification::singleton([$stack]);
Parameters
- $stack : string = 'horde_notification_stacks'
-
The name of the message stack to use.
return Horde_Notification_Handler The Horde Notification handler.