ZenMagick 0.9.0


org.zenmagick.rp.uip.views.ZMEmailView

Class ZMEmailView

ZMObject
|
+--ZMView
|
+--ZMPageView
|
+--ZMEmailView

public class ZMEmailView
extends ZMPageView

Simple email view.

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

Author:
mano
Version:
$Id: ZMEmailView.php 430 2007-10-29 23:03:03Z DerManoMann $

Constructor Summary

ZMEmailView(string template, boolean html, array args)

Create new email view.

Method Summary
void

generate()

Generate email content.

string

getViewFilename()

Returns the full view filename to be includes by a template.

boolean

isValid()

Check if this view is valid.

Methods inherited from org.zenmagick.rp.uip.ZMPageView
generate, getLayout
Methods inherited from org.zenmagick.rp.ZMView
callView, generate, getController, getMappingId, getName, getViewFilename, isValid, isViewFunction, setController, setMappingId, setName
Methods inherited from org.zenmagick.ZMObject
create

Constructor Detail

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

generate

public void generate()

Generate email content.

In contrast to other views, this version will actually not display anything, but rather return the generated content in order to be captured and passed into the actual mail code.

/


getViewFilename

public string getViewFilename()

Returns the full view filename to be includes by a template.

Returns:
The full view filename.

isValid

public boolean isValid()

Check if this view is valid.

Returns:
true if the view is valid, false if not.

ZenMagick 0.9.0