IcingaConfig: binFromDb() - new helper

This commit is contained in:
Thomas Gelf 2016-02-27 18:14:21 +01:00
parent e64e72cb52
commit 343c9471c6
1 changed files with 9 additions and 0 deletions

View File

@ -175,6 +175,15 @@ class IcingaConfig
}
}
protected function binFromDb($value)
{
if (is_resource($value)) {
return stream_get_contents($value);
}
return $val;
}
protected function calculateChecksum()
{
$files = array($this->getLastActivityHexChecksum());