Documentation

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
author

Partydragen

version
2.0.0-pr8
license

MIT

Table of Contents

Properties

$_module  : string

Methods

__construct()  : mixed
get()  : mixed
Get a configuration value.
set()  : void
Set configuration value.

Properties

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


        
On this page

Search results