Commit db901e4 1 parent 80259f5 commit db901e4 Copy full SHA for db901e4
File tree 1 file changed +19
-6
lines changed
Protocols/EPP/eppExtensions/dnsbe-1.0/eppResponses
1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ function __construct() {
7
7
8
8
9
9
/**
10
- *
11
- * @return boolean
10
+ * Retrieve a boolean flag if this domain name is in quarantine or not
11
+ * @return bool|null
12
12
*/
13
13
public function getQuarantined () {
14
14
$ xpath = $ this ->xPath ();
@@ -26,8 +26,8 @@ public function getQuarantined() {
26
26
27
27
28
28
/**
29
- *
30
- * @return boolean
29
+ * Retrieve a boolean flag if this domain name is on hold or not
30
+ * @return bool|null
31
31
*/
32
32
public function getOnHold () {
33
33
$ xpath = $ this ->xPath ();
@@ -44,8 +44,7 @@ public function getOnHold() {
44
44
}
45
45
46
46
/**
47
- *
48
- * @return string
47
+ * @return null|string
49
48
*/
50
49
public function getDomainDeletionDate () {
51
50
$ xpath = $ this ->xPath ();
@@ -56,5 +55,19 @@ public function getDomainDeletionDate() {
56
55
return null ;
57
56
}
58
57
}
58
+
59
+ /**
60
+ * Retrieve a string with the nameserver group
61
+ * @return null|string
62
+ */
63
+ public function getNameserverGroup () {
64
+ $ xpath = $ this ->xPath ();
65
+ $ result = $ xpath ->query ('/epp:epp/epp:response/epp:extension/dnsbe:ext/dnsbe:infData/dnsbe:domain/dnsbe:nsgroup ' );
66
+ if ($ result ->length > 0 ) {
67
+ return $ result ->item (0 )->nodeValue ;
68
+ } else {
69
+ return null ;
70
+ }
71
+ }
59
72
}
60
73
You can’t perform that action at this time.
0 commit comments