class UserPreferences (View source)

A preferences container for a user.

This is a very naïve, rough and temporary implementation of a User Preferences container. We'll need a better one which understands which options are available and contains some information about possible help texts etc.

Provide a more capable implementation

Properties

protected array $preferences

The actual settings

Methods

array
getPreferences()

Get preferences

void
setPreferences(array $preferences)

No description

void
set(string $key, mixed $value)

No description

mixed
get(string $key)

No description

void
setInterfaceLanguage(string $localeIdentifier)

No description

string
getInterfaceLanguage()

No description

Details

array getPreferences()

Get preferences

Return Value

array

void setPreferences(array $preferences)

No description

Parameters

array $preferences

Return Value

void

void set(string $key, mixed $value)

No description

Parameters

string $key
mixed $value

Return Value

void

mixed get(string $key)

No description

Parameters

string $key

Return Value

mixed

void setInterfaceLanguage(string $localeIdentifier)

No description

Parameters

string $localeIdentifier

Return Value

void

string getInterfaceLanguage()

No description

Return Value

string

the locale identifier