File: configuration.php

package info (click to toggle)
icingaweb2-module-reporting 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 552 kB
  • sloc: php: 3,469; sql: 289; sh: 54; xml: 18; makefile: 15
file content (45 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php

// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2

namespace Icinga\Module\Reporting {

    /** @var \Icinga\Application\Modules\Module $this */

    $this->provideCssFile('system-report.css');

    $this->menuSection(N_('Reporting'), ['icon' => 'fa-chart-simple', 'priority' => 100])
        ->add(N_('Reports'), ['url' => 'reporting/reports', 'priority' => 10]);

    $this->provideConfigTab('backend', array(
        'title' => $this->translate('Configure the database backend'),
        'label' => $this->translate('Backend'),
        'url'   => 'config/backend'
    ));

    $this->provideConfigTab('mail', array(
        'title' => $this->translate('Configure mail'),
        'label' => $this->translate('Mail'),
        'url'   => 'config/mail'
    ));

    $this->providePermission(
        'reporting/reports',
        $this->translate('Allow managing reports')
    );

    $this->providePermission(
        'reporting/schedules',
        $this->translate('Allow managing schedules')
    );

    $this->providePermission(
        'reporting/templates',
        $this->translate('Allow managing templates')
    );

    $this->providePermission(
        'reporting/timeframes',
        $this->translate('Allow managing timeframes')
    );
}