Méthode | Description | |
---|---|---|
__construct ( SpoonDatabase $database, Psr\Cache\CacheItemPoolInterface $cache ) | ||
delete ( string $module, string $key ) | Deletes a module setting | |
get ( string $module, string $key, mixed $defaultValue = null ) : mixed | Get a module setting | |
getForModule ( string $module ) : array | Get all module settings for a module | |
set ( string $module, string $key, mixed $value ) | Store a module setting |
Méthode | Description | |
---|---|---|
getAllSettingsFromDatabase ( ) : array | Reads all the settings from the database and groups them by module | |
getSettings ( ) : array | Fetches all the settings |
public __construct ( SpoonDatabase $database, Psr\Cache\CacheItemPoolInterface $cache ) | ||
$database | SpoonDatabase | |
$cache | Psr\Cache\CacheItemPoolInterface |
public getForModule ( string $module ) : array | ||
$module | string | The module wherefore a setting has to be retrieved. |
Résultat | array |