ZenMagick 0.9.1


org.zenmagick.service.ZMAttributes

Class ZMAttributes

ZMObject
|
+--ZMAttributes

public class ZMAttributes
extends ZMObject

Attribute service.

Author:
mano
Version:
$Id: ZMAttributes.php 957 2008-03-30 21:03:12Z DerManoMann $

Constructor Summary

ZMAttributes()

Create new instance.

Method Summary
boolean

checkForAttributes(int productId, int languageId)

Simple lookup to check for existing attributes.

boolean

getAttributesForProduct(ZMProduct product, int languageId)

Load attributes for the given product and language.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMAttributes

public ZMAttributes()

Create new instance. /


Method Detail

checkForAttributes

public boolean checkForAttributes(int productId, int languageId)

Simple lookup to check for existing attributes.

Parameters:
productId - The product id.
languageId - The languageId; default is null for session language.
Returns:
true if attributes eixst, false if not.

getAttributesForProduct

public boolean getAttributesForProduct(ZMProduct product, int languageId)

Load attributes for the given product and language.

Parameters:
product - The product.
languageId - The languageId; default is null for session language.
Returns:
true if attributes eixst, false if not.

instance

public static void instance()

Get instance. /


ZenMagick 0.9.1