ZMObject
|
+--ZMThemeInfo
public class ZMThemeInfo
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMThemeInfo(ZMThemeInfo parent) Create new instance. |
|
| Method Summary | |
|---|---|
| string | Get the theme author. |
| string | Get the default layout. |
| string | Get the theme description. |
| string | Get the error page. |
| string | getLayoutFor(string page) Get the layout filename for the given page. |
| string | getName() Get the theme name. |
| string | getPageEventHandler(string event, string page) Get an event handler for a page. |
| int | Get the theme id. |
| string | Get the theme version. |
| string | Get the views directory. |
| boolean | Check if the theme has a default layout. |
| string | hasPageEventHandler(mixed event, string page, string even) Check if a event handler exists for the given event and page. |
| void | setAuthor(string author) Set the theme author. |
| void | setDefaultLayout(string name) Set the default layout. |
| void | setDefaultPageEventHandler(string event, string handler) Set the default page event handler. |
| void | setDescription(string description) Set the theme description. |
| void | setErrorPage(string name) Set the error page. |
| void | setLayout(string page, string name) Set the layout for the given page. |
| void | setName(string name) Set the theme name. |
| void | setPageEventHandler(string event, string page, string handler) Set an event handler for a particular page. |
| void | setParent(ZMThemeInfo parent) Set a parent theme info. |
| void | setThemeId(int themeId) Set the theme id. |
| void | setVersion(string version) Set the theme version. |
| void | setViewsDir(string dir) Set the views directory. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMThemeInfo(ZMThemeInfo parent)
Create new instance.
public string getAuthor()
Get the theme author.
public string getDefaultLayout()
Get the default layout.
public string getDescription()
Get the theme description.
public string getErrorPage()
Get the error page.
public string getLayoutFor(string page)
Get the layout filename for the given page.
public string getName()
Get the theme name.
public string getPageEventHandler(string event, string page)
Get an event handler for a page.
null.public int getThemeId()
Get the theme id.
public string getVersion()
Get the theme version.
public string getViewsDir()
Get the views directory.
public boolean hasDefaultLayout()
Check if the theme has a default layout.
true if a default layout exists, false if not.public string hasPageEventHandler(mixed event, string page, string even)
Check if a event handler exists for the given event and page.
null.public void setAuthor(string author)
Set the theme author.
public void setDefaultLayout(string name)
Set the default layout.
public void setDefaultPageEventHandler(string event, string handler)
Set the default page event handler.
public void setDescription(string description)
Set the theme description.
public void setErrorPage(string name)
Set the error page.
public void setLayout(string page, string name)
Set the layout for the given page.
public void setName(string name)
Set the theme name.
public void setPageEventHandler(string event, string page, string handler)
Set an event handler for a particular page.
public void setParent(ZMThemeInfo parent)
Set a parent theme info.
This is to allow to use the default theme info configuration.
public void setThemeId(int themeId)
Set the theme id.
public void setVersion(string version)
Set the theme version.
public void setViewsDir(string dir)
Set the views directory.
Theme info base class.
If a
parentis set, configuration, layout and a few other settings will be merged.