|
eZ Publish
[4.2]
|
Handles prices in different currencies with VAT and discounts. More...
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 |
Handles prices in different currencies with VAT and discounts.
The available attributes are:
Definition at line 54 of file ezmultiprice.php.
| eZMultiPrice::addPrice | ( | $ | currencyCode, |
| $ | value, | ||
| $ | type | ||
| ) |
Definition at line 426 of file ezmultiprice.php.
Referenced by setPriceByCurrency().
| eZMultiPrice::attribute | ( | $ | attr | ) |
null if it doesn't exist. Definition at line 146 of file ezmultiprice.php.
Referenced by DOMDocument(), and priceByCurrency().
| eZMultiPrice::attributes | ( | ) |
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 | ||
| ) |
Definition at line 311 of file ezmultiprice.php.
Referenced by discountExVATPriceList(), discountIncVATPriceList(), exVATPriceList(), and incVATPriceList().
| 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 | ) |
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 |
||
| ) |
Definition at line 472 of file ezmultiprice.php.
Referenced by autoPrice(), basePrice(), customPrice(), price(), removePriceByCurrency(), and updatePrice().
| eZMultiPrice::priceList | ( | $ | type = false | ) |
Definition at line 256 of file ezmultiprice.php.
Referenced by attribute(), autoPriceList(), calcPriceList(), customPriceList(), priceByCurrency(), removePriceByCurrency(), and storePriceList().
| 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().
| 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 59 of file ezmultiprice.php.
Definition at line 58 of file ezmultiprice.php.
Definition at line 57 of file ezmultiprice.php.
Definition at line 56 of file ezmultiprice.php.