Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2018-01-24 10:23:59 +0300
committerGitHub <noreply@github.com>2018-01-24 10:23:59 +0300
commitca756a3603c923bb8ebe881df84c3baa651181c3 (patch)
tree2c29ce04f4508eea93186976a7a0b10ceb0a0fd4 /lib/appconfig.php
parent7f2a61b5d9643cb63d22c414df34911cbd23c092 (diff)
parentb28438611f3ccf78964bc83d664a7bcf11ecd307 (diff)
Merge pull request #149 from ONLYOFFICE/developv1.2.0
Release/1.2.0
Diffstat (limited to 'lib/appconfig.php')
-rw-r--r--lib/appconfig.php25
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