\cge_tmpdata

A convenience class to share data between classes and functions without using global variables.

Data stored using this class does not survive after the request.

Summary

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

Methods

exists()

exists(string $key) : bool

Test if the specified key exists in stored data.

Parameters

string $key

Returns

bool

get()

get(string $key, mixed $dflt) : mixed

Return the value of the specified key

Parameters

string $key
mixed $dflt

The default value to return if the key does not exist.

Returns

mixed

set()

set(string $key, mixed $value)

Set the specified data into temporary storage

Parameters

string $key
mixed $value

erase()

erase(string $key)

Erase the data associated with the specified key from temporary storage.

Parameters

string $key