eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZPrice

class eZPrice extends eZSimplePrice

Properties

$Price
$VATType
$IsVATIncluded
$DiscountPercent
$ContentObject

Methods

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

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

Details

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

Parameters

$classAttribute
$contentObjectAttribute
$storedPrice

in eZSimplePrice at line 62
public attributes()

in eZSimplePrice at line 83
public hasAttribute($attr)

Parameters

$attr

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

Parameters

$attr
$value

in eZSimplePrice at line 109
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

in eZSimplePrice at line 234
public price()

in eZSimplePrice at line 239
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

in eZSimplePrice at line 333
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 23
public eZPrice($classAttribute, $contentObjectAttribute, $storedPrice = null)

Parameters

$classAttribute
$contentObjectAttribute
$storedPrice