type : ''; $path = property_exists($params, 'path') ? $params->path : ''; $cfg = property_exists($params, 'cfg') ? $params->cfg : ''; $use_sudo = property_exists($params, 'use_sudo') ? $params->use_sudo : false; $result = $this->getModule('json_tools')->testJSONTool($type, $path, $cfg, $use_sudo); if ($result === true) { $this->output = JSONToolsError::MSG_ERROR_NO_ERRORS; $this->error = JSONToolsError::ERROR_NO_ERRORS; } else { $this->output = JSONToolsError::MSG_ERROR_JSON_TOOLS_CONNECTION_PROBLEM; $this->error = JSONToolsError::ERROR_JSON_TOOLS_CONNECTION_PROBLEM; } } } ?>