blob: 82f9643e7a66fcb47f1410ff31f806f2f749e2e0 (
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
|
<?php
namespace Icinga\Module\Director\Web\Table;
class ServiceTemplateUsageTable extends TemplateUsageTable
{
public function getTypes()
{
return [
'templates' => $this->translate('Templates'),
'objects' => $this->translate('Objects'),
'applyrules' => $this->translate('Apply Rules'),
// 'setmembers' => $this->translate('Set Members'),
];
}
protected function getTypeSummaryDefinitions()
{
return [
'templates' => $this->getSummaryLine('template'),
'objects' => $this->getSummaryLine('object'),
'applyrules' => $this->getSummaryLine('apply', 'o.service_set_id IS NULL'),
// TODO: re-enable
// 'setmembers' => $this->getSummaryLine('apply', 'o.service_set_id IS NOT NULL'),
];
}
}
|