IcingaObject: add hasBeenRenamed()...
...and a hint for IDE's
This commit is contained in:
parent
9adc0e9087
commit
1e43ca5d99
|
@ -753,6 +753,15 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
return $this->shouldBeRemoved;
|
||||
}
|
||||
|
||||
public function shouldBeRenamed()
|
||||
{
|
||||
return $this->hasBeenLoadedFromDb()
|
||||
&& $this->getOriginalProperty('object_name') !== $this->getObjectName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IcingaObjectGroups[]
|
||||
*/
|
||||
public function groups()
|
||||
{
|
||||
$this->assertGroupsSupport();
|
||||
|
|
Loading…
Reference in New Issue