ZenMagick 0.9.8


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

Class ZMCouponRestrictions

ZMObject
└─ZMCouponRestrictions

public class ZMCouponRestrictions
extends ZMObject

Collection of coupon restrictions.

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

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

Constructor Detail

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

ZMCouponRestrictions

public ZMCouponRestrictions(mixed categories)

Create new instance.


Method Detail

\store\model\checkout\coupons\ZMCouponRestrictions.php at line 82

getCategories

public array getCategories()

Returns the category restrictions.

Returns:
An array of ZMCouponRestricton instances.

\store\model\checkout\coupons\ZMCouponRestrictions.php at line 89

getProducts

public array getProducts()

Returns the product restrictions.

Returns:
An array of ZMCouponRestricton instances.

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

hasCategories

public boolean hasCategories()

Checks if there are categories.

Returns:
true if categories exist, false if not.

\store\model\checkout\coupons\ZMCouponRestrictions.php at line 75

hasProducts

public boolean hasProducts()

Checks if there are products.

Returns:
true if products exist, false if not.

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

hasRestrictions

public boolean hasRestrictions()

Checks if there are restrictions.

Returns:
true if restrictions exist, false if not.

ZenMagick 0.9.8