| @@ 542-565 (lines=24) @@ | ||
| 539 | * @throws Model\Exception\UnknownApiException |
|
| 540 | * @throws Model\Exception\UnknownException |
|
| 541 | */ |
|
| 542 | public function getMDCDomainDetails(array $params) |
|
| 543 | { |
|
| 544 | // Response is always new line encoded |
|
| 545 | $responseArray = $this |
|
| 546 | ->communicationAdapter |
|
| 547 | ->sendToApi( |
|
| 548 | self::COMODO_MDC_DOMAIN_DETAILS_URL, |
|
| 549 | $params, |
|
| 550 | CommunicationAdapter::RESPONSE_URL_ENCODED |
|
| 551 | ); |
|
| 552 | ||
| 553 | if ($responseArray['errorCode'] == 0) { |
|
| 554 | $result = new GetMDCDomainDetailsResult(); |
|
| 555 | ||
| 556 | $result |
|
| 557 | ->setDomainName($responseArray['1_domainName']) |
|
| 558 | ->setDcvMethod($responseArray['1_dcvMethod']) |
|
| 559 | ->setDcvStatus($responseArray['1_dcvStatus']); |
|
| 560 | ||
| 561 | return $result; |
|
| 562 | } else { |
|
| 563 | throw $this->createException($responseArray); |
|
| 564 | } |
|
| 565 | } |
|
| 566 | ||
| 567 | /** |
|
| 568 | * Function to do a sslcheck |
|
| @@ 657-678 (lines=22) @@ | ||
| 654 | * @throws Model\Exception\UnknownApiException |
|
| 655 | * @throws Model\Exception\UnknownException |
|
| 656 | */ |
|
| 657 | public function webHostReport(array $params) { |
|
| 658 | ||
| 659 | if (empty($params['lastResultNo'])) { |
|
| 660 | $params['lastResultNo'] = 10; |
|
| 661 | } |
|
| 662 | ||
| 663 | // Response is always new line encoded |
|
| 664 | $responseArray = $this |
|
| 665 | ->communicationAdapter |
|
| 666 | ->sendToApi( |
|
| 667 | self::COMODO_WEB_HOST_REPORT, |
|
| 668 | $params, |
|
| 669 | CommunicationAdapter::RESPONSE_URL_ENCODED |
|
| 670 | ); |
|
| 671 | if ($responseArray['error_code'] == 0) { |
|
| 672 | $result = new WebHostReportResult(); |
|
| 673 | $result->importEntries($responseArray); |
|
| 674 | return $result; |
|
| 675 | } else { |
|
| 676 | throw $this->createException($responseArray); |
|
| 677 | } |
|
| 678 | } |
|
| 679 | ||
| 680 | /** |
|
| 681 | * Function to enter the DCV code, coming from DCV E-Mail |
|