NextDom\Managers\ConfigManager
Class ConfigManager
Synopsis
class ConfigManager
{
- // constants
- const DB_CLASS_NAME = '`config`';
- // members
- private static array $defaultConfiguration = ;
- private static array $cache = ;
- // methods
- public static boolean save()
- public static mixed getDefaultConfiguration()
- public static boolean remove()
- public static mixed byKey()
- public static array byKeys()
- public static mixed searchKey()
- public static string genKey()
- public static array getPluginEnable()
- public static array getEnabledPlugins()
- public static array getLogLevelPlugin()
- public static void postConfig_market_allowDNS()
- public static void postConfig_interface_advance_vertCentering()
- public static void postConfig_object_summary()
- public static void checkValueBetween()
- public static string preConfig_market_password()
- public static void preConfig_widget_margin()
- public static void preConfig_widget_step_width()
- public static void preConfig_widget_step_height()
- public static void preConfig_css_background_opacity()
- public static void preConfig_css_border_radius()
- public static void preConfig_name()
- public static void preConfig_info_latitude()
- public static void preConfig_info_longitude()
- public static void preConfig_tts_engine()
Constants
Name | Value |
---|---|
DB_CLASS_NAME | '`config`' |
Members
private
- $cache — array
- $defaultConfiguration — array
Methods
public
- byKey() — Get configuration by key
- byKeys() — Get configuration by multiple keys
- checkValueBetween()
- genKey() — Generate Key with letters and numbers
- getDefaultConfiguration() — Get default configuration from default.config.ini
- getEnabledPlugins() — Get enabled plugins
- getLogLevelPlugin() — Get log level for all plugins
- getPluginEnable() — Get enabled plugins
- postConfig_interface_advance_vertCentering()
- postConfig_market_allowDNS() — Method called on core::allowDns config change
- postConfig_object_summary()
- preConfig_css_background_opacity()
- preConfig_css_border_radius()
- preConfig_info_latitude()
- preConfig_info_longitude()
- preConfig_market_password() — Method called on core::market_password config change (hash the password)
- preConfig_name()
- preConfig_tts_engine()
- preConfig_widget_margin()
- preConfig_widget_step_height()
- preConfig_widget_step_width()
- remove() — Remove key from the database
- save() — Save new configuration value in the database
- searchKey() — Find config key in database