ZenMagick 0.9.1


org.zenmagick.service.ZMLayout

Class ZMLayout

ZMObject
|
+--ZMLayout

public class ZMLayout
extends ZMObject

Layout stuff.

Author:
mano
Version:
$Id: ZMLayout.php 1108 2008-05-15 05:24:12Z DerManoMann $

Constructor Summary

ZMLayout()

Create new instance.

Method Summary
int

getFieldLength(string table, string field)

Get the field length of a particular column.

array

getLeftColBoxNames()

Get the box names for the left column.

string

getProductTemplate(int productId)

Find the product template for a given product.

array

getRightColBoxNames()

Get the box names for the right column.

static void

instance()

Get instance.

boolean

isLeftColEnabled()

Checks if the left column is active.

boolean

isRightColEnabled()

Checks if the right column is active.

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.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMLayout

public ZMLayout()

Create new instance. /


Method Detail

getFieldLength

public int getFieldLength(string table, string field)

Get the field length of a particular column.

Parameters:
table - The database table name.
field - The field/column name.
Returns:
The field length.

getLeftColBoxNames

public array getLeftColBoxNames()

Get the box names for the left column.

Returns:
Name of all boxes to be displayed.

getProductTemplate

public string getProductTemplate(int productId)

Find the product template for a given product.

Parameters:
productId - The product id.
Returns:
The template name to be used to display product details.

getRightColBoxNames

public array getRightColBoxNames()

Get the box names for the right column.

Returns:
Name of all boxes to be displayed.

instance

public static void instance()

Get instance. /


isLeftColEnabled

public boolean isLeftColEnabled()

Checks if the left column is active.

Returns:
true if the column is active, false if not.

isRightColEnabled

public boolean isRightColEnabled()

Checks if the right column is active.

Returns:
true if the column is active, false if not.

setLeftColBoxes

public void setLeftColBoxes(array boxes)

Set the boxes for the left column.

Parameters:
boxes - List of box names to be displayed in the left column.

setLeftColEnabled

public void setLeftColEnabled(boolean bool)

Enable/disable the left column.

Parameters:
bool - If true the left column will be displayed.

setRightColBoxes

public void setRightColBoxes(array boxes)

Set the boxes for the right column.

Parameters:
boxes - List of box names to be displayed in the right column.

setRightColEnabled

public void setRightColEnabled(boolean bool)

Enable/disable the right column.

Parameters:
bool - If true the right column will be displayed.

ZenMagick 0.9.1