summaryrefslogtreecommitdiffstats
path: root/library/Director/Web/Table/DependencyTemplateUsageTable.php
blob: d7537c58a820a20769f4eb1ae147d52c9e6d33ce (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 DependencyTemplateUsageTable 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'),
        ];
    }
}