mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
IcingaObject: add isDisabled helper method
This commit is contained in:
parent
772b46e378
commit
e040e84e5b
@ -484,6 +484,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
return parent::reallySet('disabled', $this->normalizeBoolean($disabled));
|
||||
}
|
||||
|
||||
public function isDisabled()
|
||||
{
|
||||
return $this->disabled === 'y';
|
||||
}
|
||||
|
||||
public function markForRemoval($remove = true)
|
||||
{
|
||||
$this->shouldBeRemoved = $remove;
|
||||
|
Loading…
x
Reference in New Issue
Block a user