From d381fddfff6ccd46d1919cfa9aa261db571abb00 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 28 Jul 2015 15:22:48 +0200 Subject: [PATCH] IcingaConfig: add zone name lookup helper and cache --- library/Director/IcingaConfig/IcingaConfig.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index a8f980e0..1751a818 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -14,6 +14,8 @@ class IcingaConfig protected $checksum; + protected $zoneMap = array(); + protected $lastActivityChecksum; /** @@ -133,6 +135,11 @@ class IcingaConfig return $checksums; } + protected function getZoneName($id) + { + return $this->zoneMap[$id]; + } + protected function store() {