Exemplo n.º 1
0
 private function networkinterface()
 {
     if ($this->get_request_method() == "GET" && isset($this->_request['id'])) {
         $networkinterface = new Networkinterface((int) $this->_request['id']);
         if ($networkinterface->fetch()) {
             $domxmldata = $networkinterface->getDomXMLElement($this->domxml);
             $this->response($this->finishxml($domxmldata), 200);
         } else {
             $this->error_code = 1;
             $this->error_message = "Networkinterface not found";
             $this->response($this->finishxml(), 404);
         }
     }
 }