summaryrefslogtreecommitdiffstats
path: root/service/statusservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'service/statusservice.php')
-rw-r--r--service/statusservice.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/service/statusservice.php b/service/statusservice.php
deleted file mode 100644
index b36e64c1b..000000000
--- a/service/statusservice.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * ownCloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Alessandro Cosentino <cosenal@gmail.com>
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Alessandro Cosentino 2012
- * @copyright Bernhard Posselt 2012, 2014
- */
-
-namespace OCA\News\Service;
-
-use OCP\IConfig;
-
-use OCA\News\Config\Config;
-
-
-class StatusService {
-
- private $settings;
- private $config;
- private $appName;
-
- public function __construct(IConfig $settings, Config $config, $AppName) {
- $this->settings = $settings;
- $this->config = $config;
- $this->appName = $AppName;
- }
-
- public function isProperlyConfigured() {
- $cronMode = $this->settings->getAppValue(
- 'core', 'backgroundjobs_mode'
- );
- $cronOff = !$this->config->getUseCronUpdates();
-
- // check for cron modes which may lead to problems
- return $cronMode === 'cron' || $cronOff;
- }
-
-
- public function getStatus() {
- $version = $this->settings->getAppValue(
- $this->appName, 'installed_version'
- );
-
- return [
- 'version' => $version,
- 'warnings' => [
- 'improperlyConfiguredCron' => !$this->isProperlyConfigured()
- ]
- ];
- }
-
-} \ No newline at end of file