AppSettings
in package
AppSettings manage the essential data settings of the app.
Tags
Table of Contents
- $data : array<string|int, mixed>
- Array of data settings.
- $save : bool
- Contains if need to save data.
- get() : mixed
- Return the value of property in group.
- load() : mixed
- Load default App Settings.
- reload() : mixed
- Reloads settings from database.
- save() : mixed
- Store the model data in the database.
- set() : mixed
- Set the value for group property.
- setConstants() : mixed
- Set the values for constants.
Properties
$data
Array of data settings.
private
static array<string|int, mixed>
$data
= []
$save
Contains if need to save data.
private
static bool
$save
= false
Methods
get()
Return the value of property in group.
public
static get(string $group, string $property[, mixed $default = null ]) : mixed
Parameters
- $group : string
- $property : string
- $default : mixed = null
Return values
mixed —load()
Load default App Settings.
public
load() : mixed
Return values
mixed —reload()
Reloads settings from database.
public
static reload() : mixed
Return values
mixed —save()
Store the model data in the database.
public
save() : mixed
Return values
mixed —set()
Set the value for group property.
public
set(string $group, string $property, string $value) : mixed
Parameters
- $group : string
- $property : string
- $value : string
Return values
mixed —setConstants()
Set the values for constants.
private
setConstants(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>