mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
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;
|
||||
|
||||
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()
|
||||
{
|
||||
return $this->renderCommandProperty($this->check_command_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user