summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/TimeperiodObjectDashlet.php
blob: ba4c1dbacc048fe3ecc171b7686436a189d596cc (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
28
<?php

namespace Icinga\Module\Director\Dashboard\Dashlet;

use DirectoryIterator;
use Icinga\Exception\ProgrammingError;

class TimeperiodObjectDashlet extends Dashlet
{
    protected $icon = 'calendar';

    protected $requiredStats = array('timeperiod');

    public function getTitle()
    {
        return $this->translate('Timeperiods');
    }

    public function getUrl()
    {
        return 'director/timeperiods';
    }

    public function listRequiredPermissions()
    {
        return array('director/admin');
    }
}