class Shared (View source)

The Shared class represents a collection of all shared site-wide data.

Properties

$data The shared data array.

Methods

__construct()

Parse the shared data file.

string
get(string $key)

Return requested value.

set(string $key, mixed $value)

Set key/value pair in data.

Details

__construct()

Parse the shared data file.

string get(string $key)

Return requested value.

Parameters

string $key

Return Value

string The requested value

set(string $key, mixed $value)

Set key/value pair in data.

Parameters

string $key
mixed $value