ZMObject
└─ZMTemplateManager
public class ZMTemplateManager
extends ZMObject
| Constant Summary | |
|---|---|
| final static str | |
| final static str | |
| final static str | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| 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. |
| string | handleResources(mixed files, string type, string location, array List) Empty callback method for group processing. |
| 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 | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public final static str PAGE_BOTTOM = 'bottom'
public final static str PAGE_NOW = 'now'
public final static str PAGE_TOP = 'top'
public void __construct()
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 string handleResources(mixed files, string type, string location, array List)
Empty callback method for group processing.
css or js.ZMTemplateManager::PAGE_TOP or ZMTemplateManager::PAGE_BOTTOM.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.