summaryrefslogtreecommitdiffstats
path: root/library/BoxyDash/Grid.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:54 +0000
commit573e13afd00a36a8a331d69823045938a2215c71 (patch)
tree96906f4dd33b7b5660460372269b180af564d982 /library/BoxyDash/Grid.php
parentInitial commit. (diff)
downloadicingaweb2-module-boxydash-573e13afd00a36a8a331d69823045938a2215c71.tar.xz
icingaweb2-module-boxydash-573e13afd00a36a8a331d69823045938a2215c71.zip
Adding upstream version 0.0.1+20160321.upstream/0.0.1+20160321upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/BoxyDash/Grid.php')
-rw-r--r--library/BoxyDash/Grid.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/library/BoxyDash/Grid.php b/library/BoxyDash/Grid.php
new file mode 100644
index 0000000..cec3940
--- /dev/null
+++ b/library/BoxyDash/Grid.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Icinga\Module\BoxyDash;
+
+use Icinga\Application\Config;
+use Icinga\Exception\ConfigurationError;
+use Icinga\Module\Monitoring\Object\MonitoredObject;
+use Icinga\Module\Monitoring\Object\Host;
+use Icinga\Module\Monitoring\Object\Service;
+use Icinga\Web\Hook\GrapherHook;
+use Icinga\Web\Url;
+
+class Grid extends WebBaseHook
+{
+ protected $hasPreviews = true;
+
+
+
+ protected $baseUrl = '/boxydash';
+
+ protected function init()
+ {
+ $cfg = Config::module('boxydash')->getSection('boxydash');
+ $this->baseUrl = rtrim($cfg->get('base_url', $this->baseUrl), '/');
+ }
+
+