ZMObject
└─ZMView
└─ZMSavantView
└─SavantView
public class SavantView
extends ZMSavantView
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| string | {@inheritDoc} |
| string | Return the layout name. |
| void | getTemplatePath(ZMRequest request) To allow theme inheritance, both the default and active theme's content folders are returned. |
| string | Get the views dir. |
| void | setLayout(string layout) Set the layout name. |
| void | setViewDir(string viewDir) Set the views dir. |
| 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 | |
public SavantView()
Create new instance.
public string generate(ZMRequest request)
public string getLayout()
Return the layout name.
null.public void getTemplatePath(ZMRequest request)
To allow theme inheritance, both the default and active theme's content folders are returned.
public string getViewDir()
Get the views dir.
public void setLayout(string layout)
Set the layout name.
public void setViewDir(string viewDir)
Set the views dir.
A Savant(3) view with theme support.
Also, this view allows to distinguish between layout and view.