\Horde_Notification_Storage_Object

A class that stores notifications in an object.

Copyright 2010-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.

Summary

Methods
Properties
Constants
get()
set()
exists()
clear()
push()
$notifications
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$notifications

$notifications : array

Holds the notifications pushed into this storage object.

Type

array

Methods

get()

get(string  $key) : mixed

Return the given stack from the notification store.

Parameters

string $key

The key for the data.

Returns

mixed —

The notification data stored for the given key.

set()

set(string  $key, mixed  $value) 

Set the given stack in the notification store.

Parameters

string $key

The key for the data.

mixed $value

The data.

exists()

exists(string  $key) : boolean

Is the given stack present in the notification store?

Parameters

string $key

The key of the data.

Returns

boolean —

True if the element is set, false otherwise.

clear()

clear(string  $key) 

Unset the given stack in the notification store.

Parameters

string $key

The key of the data.

push()

push(string  $listener, \Horde_Notification_Event  $event) 

Store a new event for the given listener stack.

Parameters

string $listener

The event will be stored for this listener.

\Horde_Notification_Event $event

The event to store.