ZenMagick 0.9.6


org.zenmagick.model.checkout.coupons.ZMCouponRestrictions

Class ZMCouponRestrictions

ZMObject
|
+--ZMCouponRestrictions

public class ZMCouponRestrictions
extends ZMObject

Collection of coupon restrictions.

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

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMCouponRestrictions(mixed categories)

Create new instance.

Method Summary
array

getCategories()

Returns the category restrictions.

array

getProducts()

Returns the product restrictions.

boolean

hasCategories()

Checks if there are categories.

boolean

hasProducts()

Checks if there are products.

boolean

hasRestrictions()

Checks if there are restrictions.

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

Constructor Detail

ZMCouponRestrictions

public ZMCouponRestrictions(mixed categories)

Create new instance. /


Method Detail

getCategories

public array getCategories()

Returns the category restrictions.

Returns:
An array of ZMCouponRestricton instances.

getProducts

public array getProducts()

Returns the product restrictions.

Returns:
An array of ZMCouponRestricton instances.

hasCategories

public boolean hasCategories()

Checks if there are categories.

Returns:
true if categories exist, false if not.

hasProducts

public boolean hasProducts()

Checks if there are products.

Returns:
true if products exist, false if not.

hasRestrictions

public boolean hasRestrictions()

Checks if there are restrictions.

Returns:
true if restrictions exist, false if not.

ZenMagick 0.9.6