public function setCommandObject(IcingaCommand $command) { $this->commandObject = $command; if ($this->connection === null) { $this->setConnection($command->getConnection()); } return $this; }
public function getCheckCommandObjects() { IcingaCommand::setPluginDir($this->getConstant('PluginDir')); $objects = $this->getDirectorObjects('Command', 'CheckCommand', 'CheckCommands', array('arguments' => 'arguments', 'timeout' => 'timeout', 'command' => 'command', 'vars' => 'vars')); foreach ($objects as $obj) { $obj->methods_execute = 'PluginCheck'; } return $objects; return $this->getObjects('CheckCommand', 'CheckCommands'); }
public function getCheckCommand() { $id = $this->getResolvedProperty('check_command_id'); return IcingaCommand::loadWithAutoIncId($id, $this->getConnection()); }
public function setCommandObject(IcingaCommand $object) { $this->commandObject = $object; $this->setDb($object->getConnection()); return $this; }