diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 70dc1552..fcb1c21a 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -83,6 +83,8 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer private $resolveCache = array(); + private $cachedPlainUnmodified; + public function propertyIsBoolean($property) { return array_key_exists($property, $this->booleans); @@ -962,6 +964,12 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return parent::hasProperty($key); } + public function isObject() + { + return $this->hasProperty('object_type') + && $this->object_type === 'object'; + } + public function isTemplate() { return $this->hasProperty('object_type')