summaryrefslogtreecommitdiffstats
path: root/lib/Settings/Admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Settings/Admin.php')
-rw-r--r--lib/Settings/Admin.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php
deleted file mode 100644
index e8c9a0cb2..000000000
--- a/lib/Settings/Admin.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace OCA\News\Settings;
-
-use OCP\AppFramework\Http\TemplateResponse;
-use OCP\Settings\ISettings;
-
-use OCA\News\Config\Config;
-
-class Admin implements ISettings
-{
- private $config;
-
- public function __construct(Config $config)
- {
- $this->config = $config;
- }
-
- public function getForm()
- {
- $data = [
- 'autoPurgeMinimumInterval' =>
- $this->config->getAutoPurgeMinimumInterval(),
- 'autoPurgeCount' => $this->config->getAutoPurgeCount(),
- 'maxRedirects' => $this->config->getMaxRedirects(),
- 'feedFetcherTimeout' => $this->config->getFeedFetcherTimeout(),
- 'useCronUpdates' => $this->config->getUseCronUpdates(),
- 'maxSize' => $this->config->getMaxSize(),
- 'exploreUrl' => $this->config->getExploreUrl(),
- 'updateInterval' => $this->config->getUpdateInterval(),
- ];
- return new TemplateResponse('news', 'admin', $data, '');
- }
-
- public function getSection()
- {
- return 'news';
- }
-
- public function getPriority()
- {
- return 40;
- }
-}