class Categories extends AbstractCondition

Class Categories

Properties

static string $elementType from AbstractCondition
static string $type
int[] $categories

Methods

setValues( array $values)

No description

string
__toString()

No description

static  string
getElementType()

No description

static  string
getType()

No description

mixed
checkConditionCart( Cart $cart, PriceRule $priceRule, bool|false $throwException = false)

Check if Cart is Valid for Condition.

bool
checkConditionProduct( Product $product, AbstractProductPriceRule $priceRule)

Check if Product is Valid for Condition.

int[]
getCategories()

No description

setCategories( int[] $categories)

No description

Details

in AbstractActionCondition at line line 36
setValues( array $values)

Parameters

array $values

in AbstractActionCondition at line line 54
string __toString()

Return Value

string

in AbstractActionCondition at line line 62
static string getElementType()

Return Value

string

in AbstractActionCondition at line line 70
static string getType()

Return Value

string

at line line 66
mixed checkConditionCart( Cart $cart, PriceRule $priceRule, bool|false $throwException = false)

Check if Cart is Valid for Condition.

Parameters

Cart $cart
PriceRule $priceRule
bool|false $throwException

Return Value

mixed

Exceptions

Exception

at line line 101
bool checkConditionProduct( Product $product, AbstractProductPriceRule $priceRule)

Check if Product is Valid for Condition.

Parameters

Product $product
AbstractProductPriceRule $priceRule

Return Value

bool

at line line 42
int[] getCategories()

Return Value

int[]

at line line 50
setCategories( int[] $categories)

Parameters

int[] $categories