private function iplist() { if ($this->get_request_method() == "GET") { $this->_request['interface_id'] = isset($this->_request['interface_id']) ? $this->_request['interface_id'] : false; $this->_request['network_id'] = isset($this->_request['network_id']) ? $this->_request['network_id'] : false; $iplist = new Iplist((int) $this->_request['interface_id'], (int) $this->_request['network_id'], (int) $this->_request['offset'], (int) $this->_request['limit'], $this->_request['sort_by'], $this->_request['order']); $domxmldata = $iplist->getDomXMLElement($this->domxml); $this->response($this->finishxml($domxmldata), 200); } else { $this->error_code = 2; $this->error_message = "The iplist could not be created, your request seems to be malformed."; $this->response($this->finishxml(), 400); } }