summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/CommandObjectDashlet.php
blob: 083172e7bfebcfefe382c610500e8c1a538344d0 (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
<?php

namespace Icinga\Module\Director\Dashboard\Dashlet;

class CommandObjectDashlet extends Dashlet
{
    protected $icon = 'wrench';

    protected $requiredStats = array('command');

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

    public function getUrl()
    {
        return 'director/dashboard?name=commands';
    }

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