ZenMagick 0.9.8


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

Class ZMCategoryCouponRestriction

ZMObject
└─ZMCategoryCouponRestriction

public class ZMCategoryCouponRestriction
extends ZMObject

Single coupon restriction.

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

Fields inherited from org.zenmagick.core.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.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\checkout\coupons\ZMCategoryCouponRestriction.php at line 42

ZMCategoryCouponRestriction

public ZMCategoryCouponRestriction(mixed allowed, mixed categoryId)

Create new instance.


Method Detail

\store\model\checkout\coupons\ZMCategoryCouponRestriction.php at line 68

getCategory

public A getCategory()

Returns the category.

Returns:
ZMCategory instance.

\store\model\checkout\coupons\ZMCategoryCouponRestriction.php at line 61

isAllowed

public boolean isAllowed()

Check if allowed.

Returns:
true if allowed, false if not.

ZenMagick 0.9.8