Skip to content

Commit 1d5d747

Browse files
committed
Support Ficora
1 parent 3dc5dbc commit 1d5d747

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
4+
namespace Metaregistrar\EPP;
5+
6+
/**
7+
* Class ficoraEppDnssecUpdateDomainRequest
8+
* @package Metaregistrar\EPP
9+
*/
10+
class ficoraEppDnssecUpdateDomainRequest extends eppDnssecUpdateDomainRequest
11+
{
12+
/**
13+
* ficoraEppDnssecUpdateDomainRequest constructor.
14+
* @param $infodomain
15+
* @param null $hosts
16+
* @param bool $namespacesinroot
17+
* @throws \Metaregistrar\EPP\eppException
18+
*/
19+
public function __construct($objectname, $addinfo = null, $removeinfo = null, $updateinfo = null)
20+
{
21+
parent::__construct($objectname, $addinfo, $removeinfo, $updateinfo);
22+
$this->addFicoraExtension();
23+
$this->addSessionId();
24+
}
25+
26+
public function addFicoraExtension(){
27+
$this->domainobject->setAttribute('xmlns:domain', 'urn:ietf:params:xml:ns:domain-1.0');
28+
}
29+
}

Protocols/EPP/eppExtensions/ficora/includes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030

3131
include_once(dirname(__FILE__) . '/eppRequests/ficoraEppCreateContactRequest.php');
3232
$this->addCommandResponse('Metaregistrar\EPP\ficoraEppCreateContactRequest', 'Metaregistrar\EPP\eppCreateContactResponse');
33+
34+
include_once(dirname(__FILE__). '/eppRequests/ficoraEppDnssecUpdateDomainRequest.php');
35+
$this->addCommandResponse('Metaregistrar\EPP\ficoraEppDnssecUpdateDomainRequest', 'Metaregistrar\EPP\eppUpdateDomainResponse');

Registries/ficoraEppConnection/eppConnection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ class ficoraEppConnection extends eppConnection {
66
public function __construct($logging = false, $settingsfile = null) {
77
// Construct the EPP connection object en specify if you want logging on or off
88
parent::__construct($logging, $settingsfile);
9-
9+
1010
// Specify timeout values in seconds, test interface is kind of slow
1111
parent::setTimeout(200);
1212

1313
// Enable DNSSEC, Ficora supports this
1414
parent::enableDnssec();
1515

16-
// Make sure services are not added to the main EPP commands
17-
parent::setServices(null);
16+
// Make sure services are added
17+
parent::setServices([]);
1818

1919
// Add the commands and responses specific to this registry
2020
// Please make sure the corresponding PHP files are present!
@@ -24,4 +24,4 @@ public function __construct($logging = false, $settingsfile = null) {
2424

2525
}
2626

27-
}
27+
}

0 commit comments

Comments
 (0)