eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZCurrencyConverter

class eZCurrencyConverter

Constants

ROUNDING_TYPE_NONE

ROUNDING_TYPE_ROUND

ROUNDING_TYPE_CEIL

ROUNDING_TYPE_FLOOR

Properties

$CurrencyList
$MathHandler
$RoundingType
$RoundingPrecision
$RoundingTarget

Methods

eZCurrencyConverter()

convert($fromCurrency, $toCurrency, $value, $applyRounding = true)

convertFromLocaleCurrency($toCurrency, $value, $applyRounding = true)

rateValue($currencyCode)

crossRate($fromCurrency, $toCurrency)

mathHandler()

setMathHandler($handler)

currencyList()

roundingType()

setRoundingType($type)

roundingPrecision()

setRoundingPrecision($precision)

roundingTarget()

setRoundingTarget($target)

Details

at line 26
public eZCurrencyConverter()

at line 52
public convert($fromCurrency, $toCurrency, $value, $applyRounding = true)

Parameters

$fromCurrency
$toCurrency
$value
$applyRounding

at line 92
public convertFromLocaleCurrency($toCurrency, $value, $applyRounding = true)

Parameters

$toCurrency
$value
$applyRounding

at line 100
public rateValue($currencyCode)

Parameters

$currencyCode

at line 113
public crossRate($fromCurrency, $toCurrency)

Parameters

$fromCurrency
$toCurrency

at line 127
public mathHandler()

at line 144
public setMathHandler($handler)

Parameters

$handler

at line 149
public currencyList()

at line 159
public roundingType()

at line 175
public setRoundingType($type)

Parameters

$type

at line 180
public roundingPrecision()

at line 191
public setRoundingPrecision($precision)

Parameters

$precision

at line 196
public roundingTarget()

at line 206
public setRoundingTarget($target)

Parameters

$target