mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-24 22:34:25 +02:00
IcingaObject: add awareness for apply object type
This commit is contained in:
parent
bda927b446
commit
fb6518a887
@ -30,6 +30,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
|
|
||||||
protected $supportsFields = false;
|
protected $supportsFields = false;
|
||||||
|
|
||||||
|
protected $supportsApplyRules = false;
|
||||||
|
|
||||||
protected $type;
|
protected $type;
|
||||||
|
|
||||||
/* key/value!! */
|
/* key/value!! */
|
||||||
@ -112,9 +114,15 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
return $this->supportsFields;
|
return $this->supportsFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function supportsApplyRules()
|
||||||
|
{
|
||||||
|
return $this->supportsApplyRules;
|
||||||
|
}
|
||||||
|
|
||||||
public function hasBeenModified()
|
public function hasBeenModified()
|
||||||
{
|
{
|
||||||
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
||||||
|
//var_dump($this->vars()); exit;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,6 +65,8 @@ class IcingaService extends IcingaObject
|
|||||||
|
|
||||||
protected $supportsImports = true;
|
protected $supportsImports = true;
|
||||||
|
|
||||||
|
protected $supportsApplyRules = true;
|
||||||
|
|
||||||
protected $keyName = array('host_id', 'object_name');
|
protected $keyName = array('host_id', 'object_name');
|
||||||
|
|
||||||
public function getCheckCommand()
|
public function getCheckCommand()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user