[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> Notification.php (sommaire)

(pas de description)

Poids: 218 lignes (8 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Notification:: (7 méthodes):
  singleton()
  Notification()
  attach()
  detach()
  push()
  notify()
  count()


Classe: Notification  - X-Ref

The Notification:: class provides a subject-observer pattern for
raising and showing messages of different types and to different
listeners.

$Horde: framework/Notification/Notification.php,v 1.46.2.11 2006/01/18 15:19:01 jan Exp $

Copyright 2001-2006 Jan Schneider <jan@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

singleton($stack = 'hordeMessageStacks')   X-Ref
Returns a reference to the global Notification object, only
creating it if it doesn't already exist.

This method must be invoked as:
$notification = &Notification::singleton()

param: string $stack  The name of the message stack to use.
return: Notification  The Horde Notification instance.

Notification($stack = 'hordeMessageStacks')   X-Ref
Initialize the notification system, set up any needed session
variables, etc. Should never be called except by
&Notification::singleton();

param: string $stack  The name of the message stack to use.

attach($listener, $params = array()   X-Ref
Registers a listener with the notification object and includes
the necessary library file dynamically.

param: string $driver  The name of the listener to attach. These names
param: array $params   A hash containing any additional configuration or
param: string $class   The class name from which the driver was

detach($listener)   X-Ref
Remove a listener from the notification list.

param: string $listner  The name of the listener to detach.

push($event, $type = null, $flags = array()   X-Ref
Add an event to the Horde message stack.

The event type parameter should begin with 'horde.' unless the
application defines its own Notification_Listener subclass that
handles additional codes.

param: mixed $event   Notification_Event object or message string.
param: integer $type  The type of message: 'horde.error',
param: array $flags   Array of optional flags that will be passed to the

notify($options = array()   X-Ref
Passes the message stack to all listeners and asks them to
handle their messages.

param: array $options  An array containing display options for the

count($my_listener = null)   X-Ref
Return the number of notification messages in the stack.

author: David Ulevitch <davidu@everydns.net>
param: string $my_listener  The name of the listener.
return: integer  The number of messages in the stack.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7