Class

eZPrice

class eZPrice extends eZSimplePrice

Properties

$Price
$VATType
$IsVATIncluded
$DiscountPercent
$ContentObject

Methods

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

Constructor

attributes()

from eZSimplePrice
hasAttribute($attr)

from eZSimplePrice
setAttribute($attr, $value)

from eZSimplePrice
attribute($attr)

from eZSimplePrice
VATType()

from eZSimplePrice
setVATType($VATID)

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

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

from eZSimplePrice
VATIncluded()

from eZSimplePrice
setVATIncluded($VATIncluded)

from eZSimplePrice
price()

from eZSimplePrice
setPrice($value)

from eZSimplePrice
incVATPrice()

from eZSimplePrice
exVATPrice()

from eZSimplePrice
discountPercent()

from eZSimplePrice
setDiscountPercent($percent)

from eZSimplePrice
hasDiscount()

from eZSimplePrice
discountIncVATPrice()

from eZSimplePrice
discountExVATPrice()

from eZSimplePrice
discount()

from eZSimplePrice
calcDiscountIncVATPrice($priceValue)

from eZSimplePrice
calcDiscountExVATPrice($priceValue)

from eZSimplePrice
calcIncVATPrice($priceValue)

from eZSimplePrice
calcExVATPrice($priceValue)

from eZSimplePrice
currency()

from eZSimplePrice
serializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

from eZSimplePrice
unserializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

from eZSimplePrice

Details

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

Constructor

Parameters

eZContentClassAttribute $classAttribute
eZContentObjectAttribute $contentObjectAttribute
float $storedPrice

in eZSimplePrice at line 69
public attributes()

in eZSimplePrice at line 90
public hasAttribute($attr)

Parameters

$attr

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

Parameters

$attr
$value

in eZSimplePrice at line 116
public attribute($attr)

Parameters

$attr

in eZSimplePrice at line 193
public VATType()

in eZSimplePrice at line 203
public setVATType($VATID)

Parameters

$VATID

in eZSimplePrice 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

in eZSimplePrice at line 231
public VATIncluded()

in eZSimplePrice at line 236
public setVATIncluded($VATIncluded)

Parameters

$VATIncluded

in eZSimplePrice at line 241
public price()

in eZSimplePrice at line 246
public setPrice($value)

Parameters

$value

in eZSimplePrice at line 251
public incVATPrice()

in eZSimplePrice at line 256
public exVATPrice()

in eZSimplePrice at line 261
public discountPercent()

in eZSimplePrice at line 266
public setDiscountPercent($percent)

Parameters

$percent

in eZSimplePrice at line 271
public hasDiscount()

in eZSimplePrice at line 276
public discountIncVATPrice()

in eZSimplePrice at line 281
public discountExVATPrice()

in eZSimplePrice at line 289
public discount()

in eZSimplePrice at line 294
public calcDiscountIncVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 301
public calcDiscountExVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 308
public calcIncVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 323
public calcExVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 340
public currency()

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode