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 $supportsFields = false;
|
||||
|
||||
private $type;
|
||||
|
||||
private $vars;
|
||||
|
@ -55,6 +57,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
return $this->supportsImports;
|
||||
}
|
||||
|
||||
public function supportsFields()
|
||||
{
|
||||
return $this->supportsFields;
|
||||
}
|
||||
|
||||
public function hasBeenModified()
|
||||
{
|
||||
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
||||
|
|
Loading…
Reference in New Issue