ZMObject
|
+--ZMView
|
+--ZMPageView
|
+--ZMEmailView
public class ZMEmailView
extends ZMPageView
| Constructor Summary | |
|---|---|
ZMEmailView(string template, boolean html, array args) Create new email view. |
|
| Method Summary | |
|---|---|
| void | generate() Generate email content. |
| string | 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 | |
public ZMEmailView(string template, boolean html, array args)
Create new email view.
true.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.
/public string getViewFilename()
Returns the full view filename to be includes by a template.
public boolean isValid()
Check if this view is valid.
true if the view is valid, false if not.
Simple email view.
Email template are expected in the directory
[theme-views-dir]/emails. Filenames follow the pattern[$template].[html|text].php.