ZenMagick 0.9.10


zenmagick.store.shared.mvc.views\ZMEmailView
mvc\views\ZMEmailView.php at line 33

Class ZMEmailView

ZMObject
└─ZMView
└─ZMSavantView
└─SavantView
└─ZMEmailView

public class ZMEmailView
extends SavantView

Simple email view.

Email template are expected in the directory [theme-views-dir]/emails. Filenames follow the pattern [$template].[html|text].php.

Author:
DerManoMann

Method Summary
void

__construct(string template, boolean html, array args)

Create new email view.

string

generate(ZMRequest request)

{@inheritDoc}

string

getLayout()

{@inheritDoc}

Methods inherited from zenmagick.store.sf.mvc.view\SavantView
__construct, getResourcePath, getTemplatePath
Methods inherited from org.zenmagick.mvc.view\ZMSavantView
__construct, asUrl, exists, fetch, generate, getFilterList, getFilters, getLayout, getResourcePath, getSavant, getTemplate, getTemplatePath, getViewDir, getViewUtils, path, setConfig, setFilters, setLayout, setViewDir
Methods inherited from org.zenmagick.mvc.view\ZMView
__construct, asUrl, exists, fetch, generate, getContentType, getEncoding, getTemplate, getVar, getVars, getViewId, getViewUtils, isValid, path, setTemplate, setVar, setVars, setViewId
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\views\ZMEmailView.php at line 42

__construct

public void __construct(string template, boolean html, array args)

Create new email view.

Parameters:
template - The template name.
html - Flag to indicate whether to use the HTML or text template; default is true.
args - Additional context values.

mvc\views\ZMEmailView.php at line 67

generate

public string generate(ZMRequest request)

Parameters:
request - The current request.
Returns:
The contents.

mvc\views\ZMEmailView.php at line 60

getLayout

public string getLayout()

Returns:
The layout name.

ZenMagick 0.9.10