Class

eZSimplePrice

class eZSimplePrice

Properties

$Price
$VATType
$IsVATIncluded
$DiscountPercent
$ContentObject

Methods

__construct(eZContentClassAttribute $classAttribute, eZContentObjectAttribute $contentObjectAttribute, float $storedPrice = null)

Constructor

attributes()

hasAttribute($attr)

setAttribute($attr, $value)

attribute($attr)

VATType()

setVATType($VATID)

VATPercent($object = false, $country = false)

Can return dynamic percentage depending on product and country the user is from.

VATIncluded()

setVATIncluded($VATIncluded)

price()

setPrice($value)

incVATPrice()

exVATPrice()

discountPercent()

setDiscountPercent($percent)

hasDiscount()

discountIncVATPrice()

discountExVATPrice()

discount()

calcDiscountIncVATPrice($priceValue)

calcDiscountExVATPrice($priceValue)

calcIncVATPrice($priceValue)

calcExVATPrice($priceValue)

currency()

serializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

unserializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

Details

at line 45
public __construct(eZContentClassAttribute $classAttribute, eZContentObjectAttribute $contentObjectAttribute, float $storedPrice = null)

Constructor

Parameters

eZContentClassAttribute $classAttribute
eZContentObjectAttribute $contentObjectAttribute
float $storedPrice

at line 69
public attributes()

at line 90
public hasAttribute($attr)

Parameters

$attr

at line 95
public setAttribute($attr, $value)

Parameters

$attr
$value

at line 116
public attribute($attr)

Parameters

$attr

at line 193
public VATType()

at line 203
public setVATType($VATID)

Parameters

$VATID

at line 216
public VATPercent($object = false, $country = false)

Can return dynamic percentage depending on product and country the user is from.

Parameters

$object
$country

at line 231
public VATIncluded()

at line 236
public setVATIncluded($VATIncluded)

Parameters

$VATIncluded

at line 241
public price()

at line 246
public setPrice($value)

Parameters

$value

at line 251
public incVATPrice()

at line 256
public exVATPrice()

at line 261
public discountPercent()

at line 266
public setDiscountPercent($percent)

Parameters

$percent

at line 271
public hasDiscount()

at line 276
public discountIncVATPrice()

at line 281
public discountExVATPrice()

at line 289
public discount()

at line 294
public calcDiscountIncVATPrice($priceValue)

Parameters

$priceValue

at line 301
public calcDiscountExVATPrice($priceValue)

Parameters

$priceValue

at line 308
public calcIncVATPrice($priceValue)

Parameters

$priceValue

at line 323
public calcExVATPrice($priceValue)

Parameters

$priceValue

at line 340
public currency()

at line 347
public serializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

Parameters

$classAttribute
$attributeNode
$attributeParametersNode

at line 377
public unserializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

Parameters

$classAttribute
$attributeNode
$attributeParametersNode