SproutCMS

This is the code documentation for the SproutCMS project

class EmailText

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends EmailText {
    
    /**
    * Return email text HTML
    **/
    public function getHtml (string $code, array $field_values) {
        // Method code goes here
    }
    
    /**
    * Return an array of name =&gt; desc for the field definitions for a given email template
    * Used for the admin ui
    **/
    public function getFieldDefs ($code) {
        // Method code goes here
    }
    
    /**
    * Return the URL to use for editing a given template
    * Note that this method creates a template record if it doesn't yet exist
    **/
    public function adminEditUrl ($code) {
        // Method code goes here
    }
    
}
?>