\Horde_Data_Storage_Mock

A mocked version of the storage class that stores data for the current page access only.

Summary

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

Properties

$_data

$_data : array

Data storage.

Type

array

Methods

get()

get(string  $key) : mixed

Retrieve the data for a key.

Parameters

string $key

Key.

Returns

mixed —

Data value.

set()

set(string  $key, mixed  $value = null) 

Set the data for a key.

Parameters

string $key

Key.

mixed $value

Value. If null, clears the key value.

exists()

exists(string  $key) : boolean

Does the key exist?

Parameters

string $key

Key.

Returns

boolean —

Does the key exist?

clear()

clear() 

Clear all stored data.