IcingaObject: allow to access arguments

This commit is contained in:
Thomas Gelf 2015-12-02 02:42:14 +01:00
parent 81a1706b46
commit ed3624239b
1 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$this->imports()->set($value); $this->imports()->set($value);
return $this; return $this;
} elseif ($key === 'arguments') {
if (is_object($value)) {
foreach ($value as $arg => $val) {
$this->arguments()->set($arg, $val);
}
}
return $this;
} elseif ($key === 'vars') { } elseif ($key === 'vars') {
$value = (array) $value; $value = (array) $value;
$unset = array(); $unset = array();