mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
IcingaHostServiceTable: support Branches
This commit is contained in:
parent
c994610031
commit
2dc83478ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user