ConfigurationRepository
in package
implements
IConfigurationRepository
Interfaces, Classes, Traits and Enums
Table of Contents
- $db : IDatabase
- $table : string
- {@inheritDoc}
- __construct() : mixed
- load() : Configuration
- loads configuration from database
- save() : void
- saves state of configuration object
Properties
$db
private
IDatabase
$db
$table
{@inheritDoc}
private
string
$table
= '`configuration`'
Methods
__construct()
public
__construct(IDatabase $db) : mixed
Parameters
- $db : IDatabase
Return values
mixed —load()
loads configuration from database
public
load() : Configuration
Return values
Configuration —save()
saves state of configuration object
public
save(Configuration $configuration) : void
Parameters
- $configuration : Configuration