ZenMagick 0.9.8


org.zenmagick.store.mvc.views.ZMEmailView
\store\mvc\views\ZMEmailView.php at line 34

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
Version:
$Id: ZMEmailView.php 2769 2009-12-21 22:49:16Z dermanomann $

Constructor Summary

ZMEmailView(string template, boolean html, array args)

Create new email view.

Method Summary
string

generate(ZMRequest request)

{@inheritDoc}

string

getLayout()

{@inheritDoc}

boolean

isValid()

{@inheritDoc}

Methods inherited from org.zenmagick.mvc.view.SavantView
generate, getLayout, getTemplatePath, getViewDir, setLayout, setViewDir
Methods inherited from org.zenmagick.mvc.view.ZMSavantView
fetch, getResourcePath, getSavant, getTemplatePath, setConfig
Methods inherited from org.zenmagick.mvc.view.ZMView
fetch, generate, getContentType, getEncoding, getTemplate, getVars, getViewId, isValid, setTemplate, setVar, setVars, setViewId
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\mvc\views\ZMEmailView.php at line 43

ZMEmailView

public ZMEmailView(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.

Method Detail

\store\mvc\views\ZMEmailView.php at line 75

generate

public string generate(ZMRequest request)

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

\store\mvc\views\ZMEmailView.php at line 61

getLayout

public string getLayout()

Returns:
The layout name or null.

\store\mvc\views\ZMEmailView.php at line 68

isValid

public boolean isValid()

Returns:
true if the view is valid.

ZenMagick 0.9.8