![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct () | |
getBrowser () | |
getDefaultLang () | |
getDownloadId () | |
getHostname () | |
getIncludePr () | |
getLang () | |
getLogsVerbose () | |
getMaxLogsArchives () | |
getNotepad () | |
getRaw ($key) | |
getScriptsTimeout () | |
getTimezone () | |
isLaunchStartup () | |
isOnline () | |
replace ($key, $value) | |
replaceAll ($params) |
Data Fields | |
const | CFG_BROWSER = 'browser' |
const | CFG_DEFAULT_LANG = 'defaultLang' |
const | CFG_HOSTNAME = 'hostname' |
const | CFG_INCLUDE_PR = 'IncludePR' |
const | CFG_LANG = 'lang' |
const | CFG_LAUNCH_STARTUP = 'launchStartup' |
const | CFG_LOGS_VERBOSE = 'logsVerbose' |
const | CFG_MAX_LOGS_ARCHIVES = 'maxLogsArchives' |
const | CFG_NOTEPAD = 'notepad' |
const | CFG_ONLINE = 'online' |
const | CFG_SCRIPTS_TIMEOUT = 'scriptsTimeout' |
const | CFG_TIMEZONE = 'timezone' |
const | DISABLED = 0 |
const | DOWNLOAD_ID = 'DownloadId' |
const | ENABLED = 1 |
const | VERBOSE_DEBUG = 2 |
const | VERBOSE_REPORT = 1 |
const | VERBOSE_SIMPLE = 0 |
const | VERBOSE_TRACE = 3 |
Private Attributes | |
$raw |
Class Config
This class handles the configuration settings for the Bearsampp application. It reads the configuration from an INI file and provides methods to access and modify these settings.
Definition at line 17 of file class.config.php.
__construct | ( | ) |
Constructs a Config object and initializes the configuration settings. Reads the configuration from the INI file and sets the default timezone.
Definition at line 48 of file class.config.php.
References $bearsamppRoot, and getTimezone().
getBrowser | ( | ) |
Retrieves the browser setting from the configuration.
Definition at line 164 of file class.config.php.
getDefaultLang | ( | ) |
Retrieves the default language setting from the configuration.
Definition at line 114 of file class.config.php.
getDownloadId | ( | ) |
Retrieves the license key from the configuration.
Definition at line 134 of file class.config.php.
getHostname | ( | ) |
Retrieves the hostname setting from the configuration.
Definition at line 174 of file class.config.php.
getIncludePr | ( | ) |
Retrieves the IncludePr setting from the configuration.
Definition at line 224 of file class.config.php.
getLang | ( | ) |
Retrieves the language setting from the configuration.
Definition at line 104 of file class.config.php.
getLogsVerbose | ( | ) |
Retrieves the logs verbosity setting from the configuration.
Definition at line 204 of file class.config.php.
getMaxLogsArchives | ( | ) |
Retrieves the maximum logs archives setting from the configuration.
Definition at line 214 of file class.config.php.
getNotepad | ( | ) |
Retrieves the notepad setting from the configuration.
Definition at line 194 of file class.config.php.
getRaw | ( | $key | ) |
Retrieves the raw configuration value for the specified key.
string | $key | The configuration key. |
Definition at line 63 of file class.config.php.
getScriptsTimeout | ( | ) |
Retrieves the scripts timeout setting from the configuration.
Definition at line 184 of file class.config.php.
getTimezone | ( | ) |
Retrieves the timezone setting from the configuration.
Definition at line 124 of file class.config.php.
Referenced by __construct().
isLaunchStartup | ( | ) |
Checks if the application is set to launch at startup.
Definition at line 154 of file class.config.php.
isOnline | ( | ) |
Checks if the application is set to be online.
Definition at line 144 of file class.config.php.
replace | ( | $key, | |
$value ) |
Replaces a single configuration value with the specified key and value.
string | $key | The configuration key. |
mixed | $value | The new configuration value. |
Definition at line 74 of file class.config.php.
References replaceAll().
replaceAll | ( | $params | ) |
Replaces multiple configuration values with the specified key-value pairs.
array | $params | An associative array of key-value pairs to replace. |
Definition at line 84 of file class.config.php.
References $bearsamppRoot, and Util\logTrace().
Referenced by replace().
|
private |
Definition at line 42 of file class.config.php.
const CFG_BROWSER = 'browser' |
Definition at line 30 of file class.config.php.
Referenced by ActionReload\__construct(), ActionStartup\checkBrowser(), and ActionChangeBrowser\processWindow().
const CFG_DEFAULT_LANG = 'defaultLang' |
Definition at line 28 of file class.config.php.
const CFG_HOSTNAME = 'hostname' |
Definition at line 29 of file class.config.php.
Referenced by ActionReload\__construct(), and ActionStartup\refreshHostname().
const CFG_INCLUDE_PR = 'IncludePR' |
Definition at line 27 of file class.config.php.
const CFG_LANG = 'lang' |
Definition at line 21 of file class.config.php.
Referenced by ActionSwitchLang\__construct().
const CFG_LAUNCH_STARTUP = 'launchStartup' |
Definition at line 32 of file class.config.php.
Referenced by ActionLaunchStartup\__construct(), and ActionReload\__construct().
const CFG_LOGS_VERBOSE = 'logsVerbose' |
Definition at line 20 of file class.config.php.
Referenced by ActionSwitchLogsVerbose\__construct().
const CFG_MAX_LOGS_ARCHIVES = 'maxLogsArchives' |
Definition at line 19 of file class.config.php.
const CFG_NOTEPAD = 'notepad' |
Definition at line 23 of file class.config.php.
const CFG_ONLINE = 'online' |
Definition at line 31 of file class.config.php.
Referenced by ActionSwitchOnline\__construct().
const CFG_SCRIPTS_TIMEOUT = 'scriptsTimeout' |
Definition at line 24 of file class.config.php.
const CFG_TIMEZONE = 'timezone' |
Definition at line 22 of file class.config.php.
const DISABLED = 0 |
Definition at line 35 of file class.config.php.
Referenced by ActionReload\__construct(), ActionSwitchOnline\__construct(), TplAppApache\getMenuApache(), TplAppGit\getMenuGit(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), TplAppLaunchStartup\process(), TplAppOnline\process(), BinApache\setEnable(), BinMailpit\setEnable(), BinMariadb\setEnable(), BinMemcached\setEnable(), BinMysql\setEnable(), BinNodejs\setEnable(), BinPhp\setEnable(), BinPostgresql\setEnable(), and BinXlight\setEnable().
const DOWNLOAD_ID = 'DownloadId' |
Definition at line 25 of file class.config.php.
const ENABLED = 1 |
Definition at line 34 of file class.config.php.
Referenced by ActionLaunchStartup\__construct(), ActionReload\__construct(), ActionSwitchOnline\__construct(), TplAppApache\getMenuApache(), TplAppGit\getMenuGit(), TplAppMailpit\getMenuMailpit(), TplAppMariadb\getMenuMariadb(), TplAppMemcached\getMenuMemcached(), TplAppMysql\getMenuMysql(), TplAppNodejs\getMenuNodejs(), TplAppPhp\getMenuPhp(), TplAppPostgresql\getMenuPostgresql(), TplAppXlight\getMenuXlight(), ToolGit\isScanStartup(), TplAppLaunchStartup\process(), TplAppOnline\process(), BinApache\setEnable(), BinMailpit\setEnable(), BinMariadb\setEnable(), BinMemcached\setEnable(), BinMysql\setEnable(), BinNodejs\setEnable(), BinPhp\setEnable(), BinPostgresql\setEnable(), and BinXlight\setEnable().
const VERBOSE_DEBUG = 2 |
Definition at line 39 of file class.config.php.
Referenced by TplAppLogsVerbose\getMenuLogsVerbose(), and Util\log().
const VERBOSE_REPORT = 1 |
Definition at line 38 of file class.config.php.
Referenced by TplAppLogsVerbose\getMenuLogsVerbose(), and Util\log().
const VERBOSE_SIMPLE = 0 |
Definition at line 37 of file class.config.php.
Referenced by TplAppLogsVerbose\getMenuLogsVerbose(), and Util\log().
const VERBOSE_TRACE = 3 |
Definition at line 40 of file class.config.php.
Referenced by TplAppLogsVerbose\getMenuLogsVerbose(), and Util\log().