private function send($values) { $db = new DbConnection(); $id = $db->store("0", $this->normalize($values), $this->ip); if (!$id instanceof Error) { $this->response["success"] = true; $this->response["id"] = $id; $this->response["message"] = $this->normalize($values); } else { $this->response["success"] = false; $this->response["error"] = $id; } }