summaryrefslogtreecommitdiffstats
path: root/application/controllers/IndexController.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:47:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:47:21 +0000
commit1ac4a2050c8076eb96e07e83721ebc9db864db94 (patch)
treeda9b32212bf99154450a7668f61a75f65617a9fa /application/controllers/IndexController.php
parentInitial commit. (diff)
downloadicingaweb2-module-toplevelview-upstream/0.3.3.tar.xz
icingaweb2-module-toplevelview-upstream/0.3.3.zip
Adding upstream version 0.3.3.upstream/0.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/controllers/IndexController.php')
-rw-r--r--application/controllers/IndexController.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php
new file mode 100644
index 0000000..e1353f3
--- /dev/null
+++ b/application/controllers/IndexController.php
@@ -0,0 +1,24 @@
+<?php
+/* Copyright (C) 2017 Icinga Development Team <info@icinga.com> */
+
+namespace Icinga\Module\Toplevelview\Controllers;
+
+use Icinga\Module\Toplevelview\ViewConfig;
+use Icinga\Module\Toplevelview\Web\Controller;
+
+class IndexController extends Controller
+{
+ public function indexAction()
+ {
+ $this->getTabs()->add(
+ 'index',
+ array(
+ 'title' => 'Top Level View',
+ 'url' => 'toplevelview',
+ )
+ )->activate('index');
+ $this->view->views = ViewConfig::loadAll();
+
+ $this->setAutorefreshInterval(30);
+ }
+}