Horde_Notification_Storage_Session
in package
implements
Horde_Notification_Storage_Interface
A class that stores notifications in the session.
Copyright 2009-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
Interfaces, Classes, Traits and Enums
- Horde_Notification_Storage_Interface
- An interface describing a storage location for notification messages.
Table of Contents
- $_stack : string
- The stack name.
- __construct() : mixed
- Constructor.
- clear() : mixed
- Unset the given stack in the notification store.
- exists() : bool
- Is the given stack present in the notification store?
- get() : mixed
- Return the given stack from the notification store.
- push() : mixed
- Store a new event for the given listener stack.
- set() : mixed
- Set the given stack in the notification store.
Properties
$_stack
The stack name.
protected
string
$_stack
Methods
__construct()
Constructor.
public
__construct(string $stack) : mixed
Parameters
- $stack : string
-
The name of the notification stack.
Return values
mixed —clear()
Unset the given stack in the notification store.
public
clear(string $key) : mixed
Parameters
- $key : string
-
The key of the data.
Return values
mixed —exists()
Is the given stack present in the notification store?
public
exists(string $key) : bool
Parameters
- $key : string
-
The key of the data.
Return values
bool —True if the element is set, false otherwise.
get()
Return the given stack from the notification store.
public
get(string $key) : mixed
Parameters
- $key : string
-
The key for the data.
Return values
mixed —The notification data stored for the given key.
push()
Store a new event for the given listener stack.
public
push(string $listener, Horde_Notification_Event $event) : mixed
Parameters
- $listener : string
-
The event will be stored for this listener.
- $event : Horde_Notification_Event
-
The event to store.
Return values
mixed —set()
Set the given stack in the notification store.
public
set(string $key, mixed $value) : mixed
Parameters
- $key : string
-
The key for the data.
- $value : mixed
-
The data.