IcingaObject: allow to override renderCustomVars
This commit is contained in:
parent
0e785274bf
commit
774957cfe7
|
@ -102,10 +102,6 @@ abstract class IcingaObject extends DbObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->supportsCustomVars()) {
|
|
||||||
$out .= $this->vars()->toConfigString();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,10 +121,10 @@ abstract class IcingaObject extends DbObject
|
||||||
protected function renderCustomVars()
|
protected function renderCustomVars()
|
||||||
{
|
{
|
||||||
if ($this->supportsCustomVars()) {
|
if ($this->supportsCustomVars()) {
|
||||||
// TODO
|
return $this->vars()->toConfigString();
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function renderCommandProperty($commandId, $propertyName = 'check_command')
|
protected function renderCommandProperty($commandId, $propertyName = 'check_command')
|
||||||
|
|
Loading…
Reference in New Issue