ZMObject
└─ZMTemplateManager
public class ZMTemplateManager
extends ZMObject
| Field Summary | |
|---|---|
| final str | |
| final str | |
| final str | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| void | cssFile(string filename, array attr) Add the given CSS file to the final contents. |
| int | getFieldLength(string table, string field) Get the field length of a particular column. |
| array | Get the box names for the left column. |
| string | getProductTemplate(int productId) Find the product template for a given product. |
| array | Get the box names for the right column. |
| static void | instance() Get instance. |
| boolean | Checks if the left column is active. |
| boolean | Checks if the right column is active. |
| void | jsFile(string filename, string position) Add the given JavaScript file to the final contents. |
| void | onZMFinaliseContents(mixed args) Event handler to inject JavaScript and CSS resources. |
| string | resolveThemeResource(mixed request, string resource, request The) Resolve theme resource. |
| void | setLeftColBoxes(array boxes) Set the boxes for the left column. |
| void | setLeftColEnabled(boolean bool) Enable/disable the left column. |
| void | setRightColBoxes(array boxes) Set the boxes for the right column. |
| void | setRightColEnabled(boolean bool) Enable/disable the right column. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public final str PAGE_BOTTOM = 'bottom'
public final str PAGE_NOW = 'now'
public final str PAGE_TOP = 'top'
public ZMTemplateManager()
Create new instance.
public void cssFile(string filename, array attr)
Add the given CSS file to the final contents.
public int getFieldLength(string table, string field)
Get the field length of a particular column.
public array getLeftColBoxNames()
Get the box names for the left column.
public string getProductTemplate(int productId)
Find the product template for a given product.
public array getRightColBoxNames()
Get the box names for the right column.
public static void instance()
Get instance.
public boolean isLeftColEnabled()
Checks if the left column is active.
true if the column is active, false if not.public boolean isRightColEnabled()
Checks if the right column is active.
true if the column is active, false if not.public void jsFile(string filename, string position)
Add the given JavaScript file to the final contents.
PAGE_TOP (default), or PAGE_BOTTOM.public void onZMFinaliseContents(mixed args)
Event handler to inject JavaScript and CSS resources.
public string resolveThemeResource(mixed request, string resource, request The)
Resolve theme resource.
public void setLeftColBoxes(array boxes)
Set the boxes for the left column.
public void setLeftColEnabled(boolean bool)
Enable/disable the left column.
true the left column will be displayed.public void setRightColBoxes(array boxes)
Set the boxes for the right column.
public void setRightColEnabled(boolean bool)
Enable/disable the right column.
true the right column will be displayed.
Template stuff.
This is a collection of things to make templating easier.