eZ Publish Community Project (Legacy Stack) 2013.4
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

eZSimplePrice($classAttribute, $contentObjectAttribute, $storedPrice = null)

from eZSimplePrice
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
eZMultiPrice($classAttribute, $contentObjectAttribute, $storedPrice = null)

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

in eZSimplePrice at line 38
public eZSimplePrice($classAttribute, $contentObjectAttribute, $storedPrice = null)

Parameters

$classAttribute
$contentObjectAttribute
$storedPrice

at line 58
public attributes()

at line 75
public hasAttribute($attr)

Parameters

$attr

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

Parameters

$attr
$value

at line 117
public attribute($attr)

Parameters

$attr

in eZSimplePrice at line 186
public VATType()

in eZSimplePrice at line 196
public setVATType($VATID)

Parameters

$VATID

in eZSimplePrice at line 209
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 224
public VATIncluded()

in eZSimplePrice at line 229
public setVATIncluded($VATIncluded)

Parameters

$VATIncluded

at line 459
public price()

at line 363
public setPrice($value)

Parameters

$value

in eZSimplePrice at line 244
public incVATPrice()

in eZSimplePrice at line 249
public exVATPrice()

in eZSimplePrice at line 254
public discountPercent()

in eZSimplePrice at line 259
public setDiscountPercent($percent)

Parameters

$percent

in eZSimplePrice at line 264
public hasDiscount()

in eZSimplePrice at line 269
public discountIncVATPrice()

in eZSimplePrice at line 274
public discountExVATPrice()

in eZSimplePrice at line 282
public discount()

in eZSimplePrice at line 287
public calcDiscountIncVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 294
public calcDiscountExVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 301
public calcIncVATPrice($priceValue)

Parameters

$priceValue

in eZSimplePrice at line 316
public calcExVATPrice($priceValue)

Parameters

$priceValue

at line 542
public currency()

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode

at line 41
public eZMultiPrice($classAttribute, $contentObjectAttribute, $storedPrice = null)

Parameters

$classAttribute
$contentObjectAttribute
$storedPrice

at line 177
public preferredCurrencyCode()

at line 182
public currencyList()

at line 195
public autoCurrencyList()

at line 217
public customPriceList()

at line 222
public autoPriceList()

at line 227
public priceList($type = false)

Parameters

$type

at line 262
public incVATPriceList($type = false)

Parameters

$type

at line 267
public exVATPriceList($type = false)

Parameters

$type

at line 272
public discountIncVATPriceList($type = false)

Parameters

$type

at line 277
public discountExVATPriceList($type = false)

Parameters

$type

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

Parameters

$calculationType
$priceType

at line 330
public removePriceByCurrency($currencyCode)

Parameters

$currencyCode

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

Parameters

$currencyCode
$value

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

Parameters

$currencyCode
$value

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

Parameters

$currencyCode
$value
$type

at line 367
public updateAutoPriceList()

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

Parameters

$currencyCode
$value
$type

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

Parameters

$currencyCode
$value
$type

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

Parameters

$currencyCode
$value
$type

at line 433
public customPrice($currencyCode)

Parameters

$currencyCode

at line 438
public autoPrice($currencyCode)

Parameters

$currencyCode

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

Parameters

$currencyCode
$type

at line 474
public currencyByCode($currencyCode)

Parameters

$currencyCode

at line 486
public store()

at line 495
public storePriceList()

at line 507
public hasDirtyData()

at line 512
public setHasDirtyData($hasDirtyData)

Parameters

$hasDirtyData

at line 520
public baseCurrency()

at line 536
public basePrice()

at line 547
public DOMDocument()

at line 577
public decodeDOMTree($rootNode)

Parameters

$rootNode