diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/appconfig.php | 25 | ||||
-rw-r--r-- | lib/documentservice.php | 4 |
2 files changed, 27 insertions, 2 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 diff --git a/lib/documentservice.php b/lib/documentservice.php index 3f16e9b..e118c09 100644 --- a/lib/documentservice.php +++ b/lib/documentservice.php @@ -155,7 +155,7 @@ class DocumentService { $opts = array("http" => array( "method" => "POST", - "timeout" => "120000", + "timeout" => "120", "header"=> "Content-type: application/json\r\n", "content" => $data ) @@ -270,7 +270,7 @@ class DocumentService { $opts = array("http" => array( "method" => "POST", - "timeout" => "120000", + "timeout" => "60", "header"=> "Content-type: application/json\r\n", "content" => $data ) |