SettingsManager
class SettingsManager implements SettingsStorage
Class SettingsManager.
Manages the retrieval and storage of settings using the database and cache.
Properties
| protected string | $cacheTag | The cache tag used for settings. |
Methods
mixed
get(string $key, mixed $default = null)
Get a setting value.
void
set(string $key, mixed $value = null)
Set a setting value.
bool
has(string $key)
Check if a setting exists.
array
all()
Get all settings.
bool
databaseHasTable()
Check if the settings table exists in the database.
string
inferType(mixed $value)
Infer the type of a value.
Details
at line 31
mixed
get(string $key, mixed $default = null)
Get a setting value.
at line 56
void
set(string $key, mixed $value = null)
Set a setting value.
at line 86
bool
has(string $key)
Check if a setting exists.
at line 96
array
all()
Get all settings.
at line 110
protected bool
databaseHasTable()
Check if the settings table exists in the database.
at line 126
protected string
inferType(mixed $value)
Infer the type of a value.