summaryrefslogtreecommitdiffstats
path: root/library/Director/Web/Table/NotificationTemplateUsageTable.php
blob: da411a3a0e8741ee8c0151855f27c90725b5e44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Icinga\Module\Director\Web\Table;

class NotificationTemplateUsageTable extends TemplateUsageTable
{
    public function getTypes()
    {
        return [
            'templates'  => $this->translate('Templates'),
            'applyrules' => $this->translate('Apply Rules'),
        ];
    }

    protected function getTypeSummaryDefinitions()
    {
        return [
            'templates'  => $this->getSummaryLine('template'),
            'applyrules' => $this->getSummaryLine('apply', 'o.host_id IS NULL'),
        ];
    }
}