[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 218 lignes (8 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Classe: Notification - X-Ref
The Notification:: class provides a subject-observer pattern forsingleton($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 |