diff --git a/library/Director/Web/Table/IcingaHostServiceTable.php b/library/Director/Web/Table/IcingaHostServiceTable.php index 7e8fb021..e031ca9a 100644 --- a/library/Director/Web/Table/IcingaHostServiceTable.php +++ b/library/Director/Web/Table/IcingaHostServiceTable.php @@ -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;