IcingaObjects: add supportsFields(), but still...

...unsure whether this shouldn't be implicitely depend on
supportsCustomVars
This commit is contained in:
Thomas Gelf 2015-07-30 09:08:27 +02:00
parent 9cfaf4d71f
commit 92f53f18d1
1 changed files with 7 additions and 0 deletions

View File

@ -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()) {