IcingaService: add basics for command resolution
This commit is contained in:
parent
dff0e1a263
commit
7fb1182cc8
|
@ -42,6 +42,20 @@ class IcingaService extends IcingaObject
|
||||||
|
|
||||||
protected $supportsImports = true;
|
protected $supportsImports = true;
|
||||||
|
|
||||||
|
public function getCheckCommand()
|
||||||
|
{
|
||||||
|
$id = $this->getResolvedProperty('check_command_id');
|
||||||
|
return IcingaCommand::loadWithAutoIncId(
|
||||||
|
$id,
|
||||||
|
$this->getConnection()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasCheckCommand()
|
||||||
|
{
|
||||||
|
return $this->getResolvedProperty('check_command_id') !== null;
|
||||||
|
}
|
||||||
|
|
||||||
protected function renderCheck_command_id()
|
protected function renderCheck_command_id()
|
||||||
{
|
{
|
||||||
return $this->renderCommandProperty($this->check_command_id);
|
return $this->renderCommandProperty($this->check_command_id);
|
||||||
|
|
Loading…
Reference in New Issue