/** * Umožňuje měnit parametry služeb * * @param IEService $service * @param IEHost $host ObjektHostu */ public function __construct($service, $host) { parent::__construct(); $this->service = $service; $this->host = $host; $this->command = new IECommand(); $this->command->setmyKeyColumn($this->command->nameColumn); $checkLocal = $this->service->getDataValue('check_command'); // $checkRemote = $this->service->getDataValue('check_command-remote'); if (isset($checkLocal)) { $this->command->loadFromMySQL($checkLocal); } $configurator = $this->service->getDataValue('configurator'); if ($configurator) { $module = 'modules/' . $configurator . '.inc.php'; if (file_exists($module)) { require_once $module; $this->configurator = $this->addItem(new $configurator($this)); } else { $this->addStatusMessage(sprintf(_('Modul %s nebyl nalezen'), $module), 'error'); } } else { $this->configurator = $this->addItem(new IEServiceConfigurator($this)); } }