SilverShop\Discounts\Extensions\Constraints\ProductTypeDiscountConstraint
Synopsis
class ProductTypeDiscountConstraint
extends ItemDiscountConstraint
{
- // members
- private static array $db = ;
- // Inherited members from DiscountConstraint
- protected $order;
- protected $context;
- protected $message;
- protected $messagetype;
- // methods
- public void updateCMSFields()
- public void check()
- public bool itemMatchesCriteria()
- protected void getTypes()
- protected void BuyableClasses()
- // Inherited methods from ItemDiscountConstraint
- public static bool match()
- public abstract boolean itemMatchesCriteria()
- public boolean itemsInCart()
- // Inherited methods from DiscountConstraint
- public void setOrder()
- public void setContext()
- public DataList filter()
- public abstract boolean check()
- protected void message()
- protected void error()
- public void getMessage()
- public void getMessageType()
Hierarchy
Members
private
- $db
protected
- $context
- $message
- $messagetype
- $order
Methods
protected
public
- check()
- itemMatchesCriteria() — This function is used by ItemDiscountAction, and the check function above.
- updateCMSFields()
Inherited from SilverShop\Discounts\Extensions\Constraints\ItemDiscountConstraint
public
- itemMatchesCriteria() — Returns true if the given item sits within this constraint.
- itemsInCart() — Check if at least one item in cart matches this criteria.
- match() — Checks that an item can be discounted for configured constraints.
Inherited from SilverShop\Discounts\Extensions\Constraints\DiscountConstraint
protected
public
- check() — Check if the current set order falls within this constraint.
- filter() — Filter a list of discounts according to this constraint.
- getMessage()
- getMessageType()
- setContext()
- setOrder()