Skip to content

Commit

Permalink
Add command to retrieve nameserver group from DNS Belgium extension d…
Browse files Browse the repository at this point in the history
…nsbe-1.0
  • Loading branch information
metaregistrar committed May 24, 2018
1 parent 80259f5 commit db901e4
Showing 1 changed file with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function __construct() {


/**
*
* @return boolean
* Retrieve a boolean flag if this domain name is in quarantine or not
* @return bool|null
*/
public function getQuarantined() {
$xpath = $this->xPath();
Expand All @@ -26,8 +26,8 @@ public function getQuarantined() {


/**
*
* @return boolean
* Retrieve a boolean flag if this domain name is on hold or not
* @return bool|null
*/
public function getOnHold() {
$xpath = $this->xPath();
Expand All @@ -44,8 +44,7 @@ public function getOnHold() {
}

/**
*
* @return string
* @return null|string
*/
public function getDomainDeletionDate() {
$xpath = $this->xPath();
Expand All @@ -56,5 +55,19 @@ public function getDomainDeletionDate() {
return null;
}
}

/**
* Retrieve a string with the nameserver group
* @return null|string
*/
public function getNameserverGroup() {
$xpath = $this->xPath();
$result = $xpath->query('/epp:epp/epp:response/epp:extension/dnsbe:ext/dnsbe:infData/dnsbe:domain/dnsbe:nsgroup');
if ($result->length > 0) {
return $result->item(0)->nodeValue;
} else {
return null;
}
}
}

0 comments on commit db901e4

Please sign in to comment.