summaryrefslogtreecommitdiffstats
path: root/library/BoxyDash/Grid.php
blob: cec3940dda66ee47638b40d12adc5f8a43c686d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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), '/');
    }