ZenMagick 0.9.6


org.zenmagick.model.checkout.coupons.ZMCategoryCouponRestriction

Class ZMCategoryCouponRestriction

ZMObject
|
+--ZMCategoryCouponRestriction

public class ZMCategoryCouponRestriction
extends ZMObject

Single coupon restriction.

Author:
DerManoMann
Version:
$Id: ZMCategoryCouponRestriction.php 954 2008-03-29 10:12:29Z DerManoMann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMCategoryCouponRestriction(mixed allowed, mixed categoryId)

Create new instance.

Method Summary
A

getCategory()

Returns the category.

boolean

isAllowed()

Check if allowed.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMCategoryCouponRestriction

public ZMCategoryCouponRestriction(mixed allowed, mixed categoryId)

Create new instance. /


Method Detail

getCategory

public A getCategory()

Returns the category.

Returns:
ZMCategory instance.

isAllowed

public boolean isAllowed()

Check if allowed.

Returns:
true if allowed, false if not.

ZenMagick 0.9.6