From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- library/Director/Objects/IcingaHostGroup.php | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 library/Director/Objects/IcingaHostGroup.php (limited to 'library/Director/Objects/IcingaHostGroup.php') diff --git a/library/Director/Objects/IcingaHostGroup.php b/library/Director/Objects/IcingaHostGroup.php new file mode 100644 index 0000000..e11f672 --- /dev/null +++ b/library/Director/Objects/IcingaHostGroup.php @@ -0,0 +1,42 @@ +hostgroupMembershipResolver === null) { + $this->hostgroupMembershipResolver = new HostGroupMembershipResolver( + $this->getConnection() + ); + } + + return $this->hostgroupMembershipResolver; + } + + public function setHostGroupMembershipResolver(HostGroupMembershipResolver $resolver) + { + $this->hostgroupMembershipResolver = $resolver; + return $this; + } + + protected function notifyResolvers() + { + $resolver = $this->getHostGroupMembershipResolver(); + $resolver->addGroup($this); + $resolver->refreshDb(); + + return $this; + } +} -- cgit v1.2.3