public function generateHTML() {
        //create blocktrail pub key QR codes if not already done
        if (!$this->blocktrailPubKeyQRs) {
            $this->processBlocktrailPubKeys();
        }
        $pubKeysHtml = "";
        foreach ($this->blocktrailPubKeyQRs as $pubKey) {
            $pubKeysHtml .= "<img src='{$pubKey['qr']}' />";
        }
        $totalPubKeys = count($this->blocktrailPubKeyQRs);

        $backupInfo = $this->prepareBackupInfo();
        $extraInfo = $this->prepareExtraInfo();

        $passwordEncryptedSecret = null;
        if (isset($this->backupInfo['encrypted_secret'])) {
            $passwordEncryptedSecret = $this->backupInfo['encrypted_secret'];
        }

        $html = self::renderTemplate(__DIR__ . "/../resources/templates/recovery_sheet.html.php", [
            'identifier' => $this->identifier,
            'totalPubKeys' => $totalPubKeys,
            'pubKeysHtml' => $pubKeysHtml,
            'backupInfo' => $backupInfo,
            'extraInfo' => $extraInfo,
            'passwordEncryptedSecret' => $passwordEncryptedSecret,
            'options' => $this->options,
        ]);

        return $html;
    }
public function generateHTML() {
        //create blocktrail pub key QR codes if not already done
        if (!$this->blocktrailPubKeyQRs) {
            $this->processBlocktrailPubKeys();
        }
        $pubKeysHtml = "";
        foreach ($this->blocktrailPubKeyQRs as $pubKey) {
            $pubKeysHtml .= "<img src='{$pubKey['qr']}' />";
        }
        $totalPubKeys = count($this->blocktrailPubKeyQRs);

        $backupInfo = $this->prepareBackupInfo();
        $extraInfo = $this->prepareExtraInfo();

        $passwordEncryptedSecret = null;
        if (isset($this->backupInfo['encrypted_secret'])) {
            $passwordEncryptedSecret = $this->backupInfo['encrypted_secret'];
        }

        $html = self::renderTemplate(__DIR__ . "/../resources/templates/recovery_sheet.html.php", [
            'identifier' => $this->identifier,
            'totalPubKeys' => $totalPubKeys,
            'pubKeysHtml' => $pubKeysHtml,
            'backupInfo' => $backupInfo,
            'extraInfo' => $extraInfo,
            'passwordEncryptedSecret' => $passwordEncryptedSecret,
            'options' => $this->options,
        ]);

        return $html;
    }
public function generateHTML ( ) { //create blocktrail pub key QR codes if not already done if ( ! $ this -> blocktrailPubKeyQRs ) { $ this -> processBlocktrailPubKeys ( ) ; } $ pubKeysHtml = "" ; foreach ( $ this -> blocktrailPubKeyQRs as $ pubKey ) { $ pubKeysHtml .= "<img src='{$pubKey['qr']}' />" ; } $ totalPubKeys = count ( $ this -> blocktrailPubKeyQRs ) ; $ backupInfo = $ this -> prepareBackupInfo ( ) ; $ extraInfo = $ this -> prepareExtraInfo ( ) ; $ passwordEncryptedSecret = null ; if ( isset ( $ this -> backupInfo [ 'encrypted_secret' ] ) ) { $ passwordEncryptedSecret = $ this -> backupInfo [ 'encrypted_secret' ] ; } $ html = self :: renderTemplate ( __DIR__ . "/../resources/templates/recovery_sheet.html.php" , [ 'identifier' => $ this -> identifier , 'totalPubKeys' => $ totalPubKeys , 'pubKeysHtml' => $ pubKeysHtml , 'backupInfo' => $ backupInfo , 'extraInfo' => $ extraInfo , 'passwordEncryptedSecret' => $ passwordEncryptedSecret , 'options' => $ this -> options , ] ) ; return $ html ; }
generate html document of backup details

@return string
generate html document of backup details