/** * Delete a domain * * @param int $id * * @return Status */ public function deleteDomain($id) { $url = sprintf("%s/%s/", $this->apiUrl, self::URL_DELETE_DOMAIN); $response = $this->processQuery($url, null, array('query' => array('id' => $id))); return Status::createFromArray($response); }
/** * @param int $recordID * * @return Status */ public function deleteRecord($recordID) { $url = sprintf("%s/%s/%d", $this->apiUrl, self::URL_DELETE_RECORD, $recordID); $response = $this->processQuery($url); return Status::createFromArray($response); }
/** * Rage4 DNS does not properly return error code * * @param array $response * * @return null */ protected function getStatusMessage($response) { if (is_array($response) && isset($response['status'])) { return Status::createFromArray($response['status']); } else { return null; } }