ContentBox Core API 1.6.0

contentbox.plugins
Class EmailTemplateHelper

WEB-INF.cftags.component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by contentbox.plugins.EmailTemplateHelper

public class EmailTemplateHelper
extends coldbox.system.Plugin
Constructor Summary
init(any controller)
          Constructor
 
Method Summary
 string author(string email, string content)
 string buttonBar(Array buttons)
          Create a button bar
 string divider(numeric paddingTop='18', numeric paddingRight='18', numeric paddingBottom='18', numeric paddingLeft='18', string borderColor='DDDDDD', string borderStyle='solid', numeric borderWidth='1')
          Create a divider
 string heading(string content, string level='h2', string color='777', numeric fontSize='20')
          Create a heading
 string text(string content, boolean callout='false')
          Create a text area
 
Methods inherited from class coldbox.system.Plugin
getPluginDescription, getPluginName, getPluginVersion, getRequestCollection, getRequestContext, getpluginAuthor, getpluginAuthorURL, getpluginPath, setPluginDescription, setPluginName, setPluginVersion, setpluginAuthor, setpluginAuthorURL
 
Methods inherited from class coldbox.system.FrameworkSupertype
$abort, $dump, $htmlhead, $include, $rethrow, $throw, addAsset, announceInterception, getColdboxOCM, getController, getDatasource, getDebugMode, getInterceptor, getMailService, getMailSettings, getMemento, getModel, getModuleSettings, getMyPlugin, getNewMail, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getValidationManager, getfwLocale, includeUDF, loadGlobalUDFLibraries, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setfwLocale, settingExists, validateModel
 
Methods inherited from class WEB-INF.cftags.component
None
 

Constructor Detail

init

public init(any controller)
Constructor

Parameters:
controller
Method Detail

author

public string author(string email, string content)

Parameters:
email
content

buttonBar

public string buttonBar(Array buttons)
Create a button bar

Parameters:
buttons - Array of buttons to add to the button bar

divider

public string divider(numeric paddingTop='18', numeric paddingRight='18', numeric paddingBottom='18', numeric paddingLeft='18', string borderColor='DDDDDD', string borderStyle='solid', numeric borderWidth='1')
Create a divider

Parameters:
paddingTop - Top padding
paddingRight - Right padding
paddingBottom - Bottom padding
paddingLeft - Left padding
borderColor - Border color
borderStyle - Border style
borderWidth - Border width

heading

public string heading(string content, string level='h2', string color='777', numeric fontSize='20')
Create a heading

Parameters:
content - Content for the heading
level - The heading level
color - Text color
fontSize - Heading font size

text

public string text(string content, boolean callout='false')
Create a text area

Parameters:
content - Content for the text area
callout - If true, will wrap content in a callout box

ContentBox Core API 1.6.0