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