IcingaHostServiceTable: support Branches

This commit is contained in:
Thomas Gelf 2021-10-05 23:02:06 +02:00
parent c994610031
commit 2dc83478ae

View File

@ -6,6 +6,7 @@ use ipl\Html\Html;
use Icinga\Module\Director\Objects\IcingaHost;
use gipfl\IcingaWeb2\Link;
use gipfl\IcingaWeb2\Table\ZfQueryBasedTable;
use Ramsey\Uuid\UuidInterface;
class IcingaHostServiceTable extends ZfQueryBasedTable
{
@ -23,6 +24,9 @@ class IcingaHostServiceTable extends ZfQueryBasedTable
/** @var string|null */
protected $highlightedService;
/** @var ?UuidInterface */
protected $branchUuid;
protected $searchColumns = [
'service',
];
@ -45,6 +49,12 @@ class IcingaHostServiceTable extends ZfQueryBasedTable
return $this;
}
public function setBranchUuid(UuidInterface $uuid)
{
$this->branchUuid = $uuid;
return $this;
}
public function setHost(IcingaHost $host)
{
$this->host = $host;