IcingaObject: add isDisabled helper method

This commit is contained in:
Thomas Gelf 2016-04-18 13:17:47 +02:00
parent 772b46e378
commit e040e84e5b

View File

@ -484,6 +484,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return parent::reallySet('disabled', $this->normalizeBoolean($disabled)); return parent::reallySet('disabled', $this->normalizeBoolean($disabled));
} }
public function isDisabled()
{
return $this->disabled === 'y';
}
public function markForRemoval($remove = true) public function markForRemoval($remove = true)
{ {
$this->shouldBeRemoved = $remove; $this->shouldBeRemoved = $remove;