convertTemplateHtml example

$content = $this->convertTemplatePlain($content);

        if (empty($contentHtml)) {
            $sql = <<<SQL UPDATE `s_core_config_mails` SET `content` = "$content" WHERE `name` = "$name" AND dirty = 0 SQL;
            $this->addSql($sql);

            return;
        }

        $contentHtml = $this->convertTemplateHtml($contentHtml);

        $sql = <<<SQL UPDATE `s_core_config_mails` SET `content` = "$content", `contentHTML` = "$contentHtml" WHERE `name` = "$name" AND dirty = 0 SQL;
        $this->addSql($sql);
    }

    /** * Update translations of mail templates */
    private function updateTranslations()
    {
return $header . "\r\n<br/><br/>\r\n" . $content . "\r\n<br/><br/>\r\n" . $footer;
    }

    /** * Decorates and updates html mail templates in s_core_config_mails * * @param string $name * @param string $contentHtml */
    private function updateTemplateHtml($name$contentHtml)
    {
        $contentHtml = $this->convertTemplateHtml($contentHtml);
        $this->updateEmailTemplateHtml($name$contentHtml);
    }

    /** * Updates the HTML content in s_core_config_mails * * @param string $name * @param string $contentHtml */
    private function updateEmailTemplateHtml($name$contentHtml)
    {
        

    private function updateTemplate($name$content$contentHtml = null)
    {
        $content = $this->convertTemplatePlain($content);

        if ($contentHtml) {
            $contentHtml = $this->convertTemplateHtml($contentHtml);
        }

        $this->updateEmailTemplate($name$content$contentHtml);
    }

    /** * Helper method to update the translations of a mail template * * @param string $name * @param string $content * @param string $contentHtml */
Home | Imprint | This part of the site doesn't use cookies.