Skip to content

Commit 1b3ae6a

Browse files
committed
Added de-trustee-tac extension to rrpproxy interface
1 parent 053d9c5 commit 1b3ae6a

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
namespace Metaregistrar\EPP;
3+
4+
/*
5+
<extension>
6+
<keysys:update xmlns:keysys="http://www.key-systems.net/epp/keysys-1.0">
7+
<keysys:domain>
8+
<keysys:de-accept-trustee-tac>1</keysys:de-accept-trustee-tac>
9+
</keysys:domain>
10+
</keysys:update>
11+
</extension>
12+
*/
13+
14+
15+
class rrpproxyEppUpdateDomainRequest extends eppUpdateDomainRequest {
16+
function __construct(eppDomain $domain, $addinfo = null, $removeinfo = null, $updateinfo = null, $forcehostattr=false) {
17+
$upd = new eppDomain($domain->getDomainName());
18+
parent::__construct($domain, null, null, $upd);
19+
$this->addTrustee();
20+
parent::addSessionId();
21+
22+
}
23+
24+
private function addTrustee() {
25+
$ext = $this->createElement('extension');
26+
$infdata = $this->createElement('keysys:update');
27+
$domdata = $this->createElement('keysys:domain');
28+
$cd = $this->createElement('keysys:de-accept-trustee-tac', '1');
29+
$domdata->appendChild($cd);
30+
$infdata->appendChild($domdata);
31+
$ext->appendChild($infdata);
32+
$this->command->appendChild($ext);
33+
}
34+
35+
36+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
<?php
2+
include_once(dirname(__FILE__) . '/eppRequests/rrpproxyEppUpdateDomainRequest.php');

Registries/rrpproxyEppConnection/eppConnection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public function __construct($logging = false, $settingsfile = null) {
99
parent::setCheckTransactionIds(false);
1010
parent::addExtension('keysys','http://www.key-systems.net/epp/keysys-1.0');
1111
parent::enableDnssec();
12+
parent::addCommandResponse('Metaregistrar\EPP\rrpproxyEppUpdateDomainRequest', 'Metaregistrar\EPP\eppUpdateDomainResponse');
1213
}
1314

1415
}

0 commit comments

Comments
 (0)