diff options
Diffstat (limited to 'lib/appconfig.php')
-rw-r--r-- | lib/appconfig.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/appconfig.php b/lib/appconfig.php index 2be5943..6979e45 100644 --- a/lib/appconfig.php +++ b/lib/appconfig.php @@ -121,6 +121,13 @@ class AppConfig { private $_jwtHeader = "jwt_header"; /** + * The config key for the settings error + * + * @var string + */ + private $_settingsError = "settings_error"; + + /** * @param string $AppName - application name */ public function __construct($AppName) { @@ -366,6 +373,24 @@ class AppConfig { return $header; } + /** + * Save the status settings + * + * @param boolean $value - error + */ + public function SetSettingsError($value) { + $this->config->setAppValue($this->appName, $this->_settingsError, $value); + } + + /** + * Get the status settings + * + * @return boolean + */ + public function SettingsAreSuccessful() { + return empty($this->config->getAppValue($this->appName, $this->_settingsError, "")); + } + /** * Additional data about formats |