eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZSimplePrice

class eZSimplePrice

Properties

$Price
$VATType
$IsVATIncluded
$DiscountPercent
$ContentObject

Methods

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

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

Parameters

$classAttribute
$contentObjectAttribute
$storedPrice

at line 62
public attributes()

at line 83
public hasAttribute($attr)

Parameters

$attr

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

Parameters

$attr
$value

at line 109
public attribute($attr)

Parameters

$attr

at line 186
public VATType()

at line 196
public setVATType($VATID)

Parameters

$VATID

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

at line 224
public VATIncluded()

at line 229
public setVATIncluded($VATIncluded)

Parameters

$VATIncluded

at line 234
public price()

at line 239
public setPrice($value)

Parameters

$value

at line 244
public incVATPrice()

at line 249
public exVATPrice()

at line 254
public discountPercent()

at line 259
public setDiscountPercent($percent)

Parameters

$percent

at line 264
public hasDiscount()

at line 269
public discountIncVATPrice()

at line 274
public discountExVATPrice()

at line 282
public discount()

at line 287
public calcDiscountIncVATPrice($priceValue)

Parameters

$priceValue

at line 294
public calcDiscountExVATPrice($priceValue)

Parameters

$priceValue

at line 301
public calcIncVATPrice($priceValue)

Parameters

$priceValue

at line 316
public calcExVATPrice($priceValue)

Parameters

$priceValue

at line 333
public currency()

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode

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

Parameters

$classAttribute
$attributeNode
$attributeParametersNode