Settings
extends PlatformUtility
in package
Provides settings utility functions.
Tags
Table of Contents
- get() : array<string|int, mixed>|bool|mixed|null
- Get value of a setting.
- list() : array<string|int, mixed>
- Get a list of all settings.
Methods
get()
Get value of a setting.
public
get(string $key[, mixed $fallback = null ]) :
array<string|int, mixed>|bool|mixed|null
If the setting does not exists or is null, this function will return the provided default argument instead.
Parameters
- $key : string
- $fallback : mixed = null
Tags
Return values
array<string|int, mixed>|bool|mixed|null —list()
Get a list of all settings.
public
list() :
array<string|int, mixed>