Dependencies: add usage overview and table

This commit is contained in:
David Ulbricht 2017-09-28 14:31:26 +02:00 committed by Thomas Gelf
parent c3b23a836a
commit 727cc22bc4
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,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'),
];
}
}