IcingaConfig: add configFile helper method

This commit is contained in:
Thomas Gelf 2015-07-28 15:22:20 +02:00
parent 6b96198235
commit f57847cb32
1 changed files with 10 additions and 0 deletions

View File

@ -281,6 +281,16 @@ class IcingaConfig
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()
{
return Util::binary2hex($this->getLastActivityChecksum());