summaryrefslogtreecommitdiffstats
path: root/library/Director/Web/Table/HostTemplateUsageTable.php
blob: 2d1ee2f1afb38551c0bd45e934e14008aa79f0a4 (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 HostTemplateUsageTable extends TemplateUsageTable
{
    public function getTypes()
    {
        return [
            'templates'  => $this->translate('Templates'),
            'objects'    => $this->translate('Objects'),
        ];
    }

    protected function getTypeSummaryDefinitions()
    {
        return [
            'templates'  => $this->getSummaryLine('template'),
            'objects'    => $this->getSummaryLine('object'),
        ];
    }
}