From db901e4224d3cdb18e6091e88afc44b89135124f Mon Sep 17 00:00:00 2001 From: Ewout de Graaf Date: Thu, 24 May 2018 21:34:21 +0200 Subject: [PATCH] Add command to retrieve nameserver group from DNS Belgium extension dnsbe-1.0 --- .../dnsbeEppInfoDomainResponse.php | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses/dnsbeEppInfoDomainResponse.php b/Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses/dnsbeEppInfoDomainResponse.php index deaa650f..5fcb67e1 100644 --- a/Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses/dnsbeEppInfoDomainResponse.php +++ b/Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses/dnsbeEppInfoDomainResponse.php @@ -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(); @@ -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(); @@ -44,8 +44,7 @@ public function getOnHold() { } /** - * - * @return string + * @return null|string */ public function getDomainDeletionDate() { $xpath = $this->xPath(); @@ -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; + } + } }