mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-22 17:37:50 +02:00
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…
x
Reference in New Issue
Block a user