mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are made compatible with `director branches`.
29 lines
717 B
PHP
29 lines
717 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\Web\Table;
|
|
|
|
use Icinga\Module\Director\Db;
|
|
|
|
class DependencyTemplateUsageTable extends TemplateUsageTable
|
|
{
|
|
public function getTypes()
|
|
{
|
|
return [
|
|
'templates' => $this->translate('Templates'),
|
|
'applyrules' => $this->translate('Apply Rules'),
|
|
];
|
|
}
|
|
|
|
protected function getSummaryTables(string $templateType, Db $connection)
|
|
{
|
|
return [
|
|
'templates' => TemplatesTable::create(
|
|
$templateType,
|
|
$connection
|
|
),
|
|
'applyrules' => ApplyRulesTable::create($templateType, $connection)
|
|
->setBranchUuid($this->branchUuid)
|
|
];
|
|
}
|
|
}
|