IcingaObjects: add supportsFields(), but still...
...unsure whether this shouldn't be implicitely depend on supportsCustomVars
This commit is contained in:
parent
9cfaf4d71f
commit
92f53f18d1
|
@ -23,6 +23,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
|
|
||||||
protected $supportsImports = false;
|
protected $supportsImports = false;
|
||||||
|
|
||||||
|
protected $supportsFields = false;
|
||||||
|
|
||||||
private $type;
|
private $type;
|
||||||
|
|
||||||
private $vars;
|
private $vars;
|
||||||
|
@ -55,6 +57,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
return $this->supportsImports;
|
return $this->supportsImports;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportsFields()
|
||||||
|
{
|
||||||
|
return $this->supportsFields;
|
||||||
|
}
|
||||||
|
|
||||||
public function hasBeenModified()
|
public function hasBeenModified()
|
||||||
{
|
{
|
||||||
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
||||||
|
|
Loading…
Reference in New Issue