eZ Publish  [4.2]
eZMultiPrice Class Reference

Handles prices in different currencies with VAT and discounts. More...

List of all members.

Public Member Functions

 addPrice ($currencyCode, $value, $type)
 attribute ($attr)
 attributes ()
 autoCurrencyList ()
 autoPrice ($currencyCode)
 autoPriceList ()
 baseCurrency ()
 basePrice ()
 calcPriceList ($calculationType, $priceType)
 createPrice ($currencyCode, $value, $type)
 currency ()
 currencyByCode ($currencyCode)
 currencyList ()
 customPrice ($currencyCode)
 customPriceList ()
 decodeDOMTree ($rootNode)
 discountExVATPriceList ($type=false)
 discountIncVATPriceList ($type=false)
 DOMDocument ()
 exVATPriceList ($type=false)
 eZMultiPrice ($classAttribute, $contentObjectAttribute, $storedPrice=null)
 hasAttribute ($attr)
 hasDirtyData ()
 incVATPriceList ($type=false)
 preferredCurrencyCode ()
 price ()
 priceByCurrency ($currencyCode, $type=false)
 priceList ($type=false)
 removePriceByCurrency ($currencyCode)
 setAttribute ($attr, $value)
 setAutoPrice ($currencyCode, $value)
 setCustomPrice ($currencyCode, $value)
 setHasDirtyData ($hasDirtyData)
 setPrice ($value)
 setPriceByCurrency ($currencyCode, $value, $type)
 store ()
 storePriceList ()
 updateAutoPriceList ()
 updatePrice ($currencyCode, $value, $type)

Static Public Member Functions

static removeByID ($objectAttributeID, $objectAttributeVersion=null)

Public Attributes

 $ContentObjectAttribute
 $CurrencyList
 $HasDataDirty
 $PriceList
const CALCULATION_TYPE_DISCOUNT_EXCLUDE = 4
const CALCULATION_TYPE_DISCOUNT_INCLUDE = 3
const CALCULATION_TYPE_VAT_EXCLUDE = 2
const CALCULATION_TYPE_VAT_INCLUDE = 1

Detailed Description

Handles prices in different currencies with VAT and discounts.

The available attributes are:

  • vat_type
  • current_user
  • is_vat_included
  • selected_vat_type
  • vat_percent
  • inc_vat_price
  • ex_vat_price
  • discount_percent
  • discount_price_inc_vat
  • discount_price_ex_vat
  • has_discount
  • price

Definition at line 54 of file ezmultiprice.php.


Member Function Documentation

eZMultiPrice::addPrice ( currencyCode,
value,
type 
)

Definition at line 426 of file ezmultiprice.php.

Referenced by setPriceByCurrency().

eZMultiPrice::attribute ( attr)
Returns:
The value of the attribute named $attr or null if it doesn't exist.

Definition at line 146 of file ezmultiprice.php.

Referenced by DOMDocument(), and priceByCurrency().

eZMultiPrice::attributes ( )
Returns:
An array with attributes that is available.

Definition at line 81 of file ezmultiprice.php.

Referenced by hasAttribute().

eZMultiPrice::autoCurrencyList ( )

functional attribute

Definition at line 224 of file ezmultiprice.php.

Referenced by attribute(), and updateAutoPriceList().

eZMultiPrice::autoPrice ( currencyCode)

Definition at line 467 of file ezmultiprice.php.

eZMultiPrice::autoPriceList ( )

Definition at line 251 of file ezmultiprice.php.

Referenced by attribute().

eZMultiPrice::baseCurrency ( )

Returns a currency code of the first custom price.

Definition at line 549 of file ezmultiprice.php.

Referenced by basePrice().

eZMultiPrice::basePrice ( )

Definition at line 565 of file ezmultiprice.php.

Referenced by updateAutoPriceList().

eZMultiPrice::calcPriceList ( calculationType,
priceType 
)
eZMultiPrice::createPrice ( currencyCode,
value,
type 
)

Definition at line 412 of file ezmultiprice.php.

Referenced by addPrice().

eZMultiPrice::currency ( )

Definition at line 571 of file ezmultiprice.php.

eZMultiPrice::currencyByCode ( currencyCode)

Definition at line 503 of file ezmultiprice.php.

Referenced by createPrice().

eZMultiPrice::currencyList ( )

Definition at line 211 of file ezmultiprice.php.

Referenced by attribute(), autoCurrencyList(), and currencyByCode().

eZMultiPrice::customPrice ( currencyCode)

Definition at line 462 of file ezmultiprice.php.

eZMultiPrice::customPriceList ( )

functional attribute

Definition at line 246 of file ezmultiprice.php.

Referenced by attribute(), autoCurrencyList(), and baseCurrency().

eZMultiPrice::decodeDOMTree ( rootNode)

Definition at line 606 of file ezmultiprice.php.

eZMultiPrice::discountExVATPriceList ( type = false)

Definition at line 306 of file ezmultiprice.php.

Referenced by attribute().

eZMultiPrice::discountIncVATPriceList ( type = false)

Definition at line 301 of file ezmultiprice.php.

Referenced by attribute().

eZMultiPrice::DOMDocument ( )

Definition at line 576 of file ezmultiprice.php.

eZMultiPrice::exVATPriceList ( type = false)

Definition at line 296 of file ezmultiprice.php.

Referenced by attribute().

eZMultiPrice::eZMultiPrice ( classAttribute,
contentObjectAttribute,
storedPrice = null 
)

Constructor

Definition at line 64 of file ezmultiprice.php.

eZMultiPrice::hasAttribute ( attr)
Returns:
true if the attribute named $attr exists.

Definition at line 98 of file ezmultiprice.php.

eZMultiPrice::hasDirtyData ( )

Definition at line 536 of file ezmultiprice.php.

Referenced by store().

eZMultiPrice::incVATPriceList ( type = false)

Definition at line 291 of file ezmultiprice.php.

Referenced by attribute().

eZMultiPrice::preferredCurrencyCode ( )

functional attribute

Definition at line 206 of file ezmultiprice.php.

Referenced by currency(), and price().

eZMultiPrice::price ( )

Definition at line 488 of file ezmultiprice.php.

eZMultiPrice::priceByCurrency ( currencyCode,
type = false 
)
eZMultiPrice::priceList ( type = false)
static eZMultiPrice::removeByID ( objectAttributeID,
objectAttributeVersion = null 
) [static]

Definition at line 354 of file ezmultiprice.php.

Referenced by eZMultiPriceType\deleteStoredObjectAttribute().

eZMultiPrice::removePriceByCurrency ( currencyCode)

Definition at line 359 of file ezmultiprice.php.

eZMultiPrice::setAttribute ( attr,
value 
)

Sets the attribute named $attr to value $value.

Definition at line 112 of file ezmultiprice.php.

eZMultiPrice::setAutoPrice ( currencyCode,
value 
)

Definition at line 375 of file ezmultiprice.php.

Referenced by updateAutoPriceList().

eZMultiPrice::setCustomPrice ( currencyCode,
value 
)

Definition at line 370 of file ezmultiprice.php.

eZMultiPrice::setHasDirtyData ( hasDirtyData)

Definition at line 541 of file ezmultiprice.php.

Referenced by addPrice(), store(), and updatePrice().

eZMultiPrice::setPrice ( value)

Definition at line 392 of file ezmultiprice.php.

eZMultiPrice::setPriceByCurrency ( currencyCode,
value,
type 
)

Definition at line 380 of file ezmultiprice.php.

Referenced by decodeDOMTree(), setAutoPrice(), and setCustomPrice().

eZMultiPrice::store ( )

Definition at line 515 of file ezmultiprice.php.

eZMultiPrice::storePriceList ( )

Definition at line 524 of file ezmultiprice.php.

Referenced by store().

eZMultiPrice::updateAutoPriceList ( )

Definition at line 396 of file ezmultiprice.php.

eZMultiPrice::updatePrice ( currencyCode,
value,
type 
)

Definition at line 441 of file ezmultiprice.php.

Referenced by setPriceByCurrency().


Member Data Documentation

eZMultiPrice::$ContentObjectAttribute

Definition at line 627 of file ezmultiprice.php.

eZMultiPrice::$CurrencyList

Definition at line 625 of file ezmultiprice.php.

eZMultiPrice::$HasDataDirty

Definition at line 626 of file ezmultiprice.php.

eZMultiPrice::$PriceList

Definition at line 624 of file ezmultiprice.php.

Definition at line 57 of file ezmultiprice.php.

Definition at line 56 of file ezmultiprice.php.


The documentation for this class was generated from the following file: