Configuration
in package
Allows easy read/write to configuration values for a module stored in the database.
Use Util::getSetting and Util::setSetting with $module parameter instead. Will be removed in 2.2.0
Tags
Table of Contents
Properties
- $_module : string
Methods
- __construct() : mixed
- get() : mixed
- Get a configuration value.
- set() : void
- Set configuration value.
Properties
$_module
private
string
$_module
Methods
__construct()
public
__construct(string $module) : mixed
Parameters
- $module : string
get()
Get a configuration value.
public
get(string $setting) : mixed
Parameters
- $setting : string
-
Setting name
Return values
mixed —The configuration value
set()
Set configuration value.
public
set(string $setting, mixed $value) : void
Parameters
- $setting : string
-
Setting name
- $value : mixed
-
New value