contentbox.plugins

Class EmailTemplateHelper

railo-context.Component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by contentbox.plugins.EmailTemplateHelper
Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    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
    getpluginAuthor, getpluginAuthorURL, getPluginDescription, getPluginName, getpluginPath, getPluginVersion, getRequestCollection, getRequestContext, setpluginAuthor, setpluginAuthorURL, setPluginDescription, setPluginName, setPluginVersion
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getDatasource, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class railo-context.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