Class

eZMultiPrice

class eZMultiPrice extends eZSimplePrice

Constants

CALCULATION_TYPE_VAT_INCLUDE

CALCULATION_TYPE_VAT_EXCLUDE

CALCULATION_TYPE_DISCOUNT_INCLUDE

CALCULATION_TYPE_DISCOUNT_EXCLUDE

Properties

$Price
$VATType
$IsVATIncluded
$DiscountPercent
$ContentObject
$PriceList
$CurrencyList
$HasDataDirty
$ContentObjectAttribute

Methods

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

Constructor

attributes()

hasAttribute($attr)

setAttribute($attr, $value)

attribute($attr)

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()

setPrice($value)

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()

serializeContentClassAttribute($classAttribute, $attributeNode, $attributeParametersNode)

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

from eZSimplePrice
preferredCurrencyCode()

currencyList()

autoCurrencyList()

customPriceList()

autoPriceList()

priceList($type = false)

incVATPriceList($type = false)

exVATPriceList($type = false)

discountIncVATPriceList($type = false)

discountExVATPriceList($type = false)

calcPriceList($calculationType, $priceType)

removePriceByCurrency($currencyCode)

setCustomPrice($currencyCode, $value)

setAutoPrice($currencyCode, $value)

setPriceByCurrency($currencyCode, $value, $type)

updateAutoPriceList()

createPrice($currencyCode, $value, $type)

addPrice($currencyCode, $value, $type)

updatePrice($currencyCode, $value, $type)

customPrice($currencyCode)

autoPrice($currencyCode)

priceByCurrency($currencyCode, $type = false)

currencyByCode($currencyCode)

store()

storePriceList()

hasDirtyData()

setHasDirtyData($hasDirtyData)

baseCurrency()

basePrice()

DOMDocument()

decodeDOMTree($rootNode)

Details

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

Constructor

Parameters

eZContentClassAttribute $classAttribute
eZContentObjectAttribute $contentObjectAttribute
float $storedPrice

at line 55
public attributes()

at line 72
public hasAttribute($attr)

Parameters

$attr

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

Parameters

$attr
$value

at line 114
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

at line 456
public price()

at line 360
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

at line 539
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

at line 174
public preferredCurrencyCode()

at line 179
public currencyList()

at line 192
public autoCurrencyList()

at line 214
public customPriceList()

at line 219
public autoPriceList()

at line 224
public priceList($type = false)

Parameters

$type

at line 259
public incVATPriceList($type = false)

Parameters

$type

at line 264
public exVATPriceList($type = false)

Parameters

$type

at line 269
public discountIncVATPriceList($type = false)

Parameters

$type

at line 274
public discountExVATPriceList($type = false)

Parameters

$type

at line 279
public calcPriceList($calculationType, $priceType)

Parameters

$calculationType
$priceType

at line 327
public removePriceByCurrency($currencyCode)

Parameters

$currencyCode

at line 338
public setCustomPrice($currencyCode, $value)

Parameters

$currencyCode
$value

at line 343
public setAutoPrice($currencyCode, $value)

Parameters

$currencyCode
$value

at line 348
public setPriceByCurrency($currencyCode, $value, $type)

Parameters

$currencyCode
$value
$type

at line 364
public updateAutoPriceList()

at line 380
public createPrice($currencyCode, $value, $type)

Parameters

$currencyCode
$value
$type

at line 394
public addPrice($currencyCode, $value, $type)

Parameters

$currencyCode
$value
$type

at line 409
public updatePrice($currencyCode, $value, $type)

Parameters

$currencyCode
$value
$type

at line 430
public customPrice($currencyCode)

Parameters

$currencyCode

at line 435
public autoPrice($currencyCode)

Parameters

$currencyCode

at line 440
public priceByCurrency($currencyCode, $type = false)

Parameters

$currencyCode
$type

at line 471
public currencyByCode($currencyCode)

Parameters

$currencyCode

at line 483
public store()

at line 492
public storePriceList()

at line 504
public hasDirtyData()

at line 509
public setHasDirtyData($hasDirtyData)

Parameters

$hasDirtyData

at line 517
public baseCurrency()

at line 533
public basePrice()

at line 544
public DOMDocument()

at line 574
public decodeDOMTree($rootNode)

Parameters

$rootNode