ZenMagick 0.9.8


org.zenmagick.store.model.checkout.coupons.ZMProductCouponRestriction
\store\model\checkout\coupons\ZMProductCouponRestriction.php at line 34

Class ZMProductCouponRestriction

ZMObject
└─ZMProductCouponRestriction

public class ZMProductCouponRestriction
extends ZMObject

Single coupon restriction.

Author:
DerManoMann
Version:
$Id: ZMProductCouponRestriction.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMProductCouponRestriction(boolean allowed, int productId)

Create new coupon restriction.

Method Summary
A

getProduct()

Returns the product.

boolean

isAllowed()

Checks if this coupon restriction is allowed.

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

Constructor Detail

\store\model\checkout\coupons\ZMProductCouponRestriction.php at line 45

ZMProductCouponRestriction

public ZMProductCouponRestriction(boolean allowed, int productId)

Create new coupon restriction.

Parameters:
allowed - The allowed flag.
productId - The product id this restriction applies to.

Method Detail

\store\model\checkout\coupons\ZMProductCouponRestriction.php at line 71

getProduct

public A getProduct()

Returns the product.

Returns:
ZMProduct instance.

\store\model\checkout\coupons\ZMProductCouponRestriction.php at line 64

isAllowed

public boolean isAllowed()

Checks if this coupon restriction is allowed.

Returns:
true if this coupon restriction is allowed, false if not.

ZenMagick 0.9.8