mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaConfig: add configFile helper method
This commit is contained in:
parent
6b96198235
commit
f57847cb32
@ -281,6 +281,16 @@ class IcingaConfig
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function configFile($name)
|
||||||
|
{
|
||||||
|
$filename = $name . '.conf';
|
||||||
|
if (! array_key_exists($filename, $this->files)) {
|
||||||
|
$this->files[$filename] = new IcingaConfigFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->files[$filename];
|
||||||
|
}
|
||||||
|
|
||||||
public function getLastActivityHexChecksum()
|
public function getLastActivityHexChecksum()
|
||||||
{
|
{
|
||||||
return Util::binary2hex($this->getLastActivityChecksum());
|
return Util::binary2hex($this->getLastActivityChecksum());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user