Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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. |
Результат | array |