Skip to content

added rrpproxy ext response to get contact verified/validation in contact info… #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php
namespace Metaregistrar\EPP;

/*
* <extension>
<keysys:resData xmlns:keysys="http://www.key-systems.net/epp/keysys-1.0">
<keysys:contactInfData>
<keysys:validated>1</keysys:validated>
<keysys:verified>1</keysys:verified>
</keysys:contactInfData>
</keysys:resData>
</extension>
*/

class rrpproxyEppInfoContactResponse extends eppInfoContactResponse {
function __construct() {
parent::__construct();
}


/**
*
* @return bool|null
*/
public function getValidated() {
$xpath = $this->xPath();
$result = $xpath->query('/epp:epp/epp:response/epp:extension/keysys:resData/keysys:contactInfData/keysys:validated');
if ($result->length > 0) {
return $result->item(0)->nodeValue == '1' ? true : false;
} else {
return null;
}
}

/**
*
* @return bool|null
*/
public function getVerified() {
$xpath = $this->xPath();
$result = $xpath->query('/epp:epp/epp:response/epp:extension/keysys:resData/keysys:contactInfData/keysys:verified');
if ($result->length > 0) {
return $result->item(0)->nodeValue == '1' ? true : false;
} else {
return null;
}
}
}

5 changes: 4 additions & 1 deletion Protocols/EPP/eppExtensions/keysys-1.0/includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
$this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppRenewalmodeRequest', 'Metaregistrar\EPP\eppUpdateDomainResponse');

include_once(dirname(__FILE__) . '/eppRequests/rrpproxyEppTransferDomainRequest.php');
$this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppTransferDomainRequest', 'Metaregistrar\EPP\eppTransferResponse');
$this->addCommandResponse('Metaregistrar\EPP\rrpproxyEppTransferDomainRequest', 'Metaregistrar\EPP\eppTransferResponse');

include_once(dirname(__FILE__) . '/eppResponses/rrpproxyEppInfoContactResponse.php');
$this->addCommandResponse('Metaregistrar\EPP\eppInfoContactRequest', 'Metaregistrar\EPP\rrpproxyEppInfoContactResponse');