Documentation

Currencies extends ResourceBundle
in package

FinalYes

Gives access to currency-related ICU data.

Tags
author

Bernhard Schussek bschussek@gmail.com

author

Roland Franssen franssen.roland@gmail.com

Table of Contents

Constants

INDEX_CASH_FRACTION_DIGITS  = 2
INDEX_CASH_ROUNDING_INCREMENT  = 3
INDEX_FRACTION_DIGITS  = 0
INDEX_NAME  = 1
INDEX_ROUNDING_INCREMENT  = 1
INDEX_SYMBOL  = 0

Methods

exists()  : bool
forNumericCode()  : array<string|int, mixed>
getCashFractionDigits()  : int
getCashRoundingIncrement()  : int
getCurrencyCodes()  : array<string|int, string>
getFractionDigits()  : int
getName()  : string
getNames()  : array<string|int, string>
getNumericCode()  : int
getRoundingIncrement()  : int
getSymbol()  : string
getPath()  : string

Constants

INDEX_CASH_FRACTION_DIGITS

private mixed INDEX_CASH_FRACTION_DIGITS = 2

INDEX_CASH_ROUNDING_INCREMENT

private mixed INDEX_CASH_ROUNDING_INCREMENT = 3

INDEX_FRACTION_DIGITS

private mixed INDEX_FRACTION_DIGITS = 0

INDEX_ROUNDING_INCREMENT

private mixed INDEX_ROUNDING_INCREMENT = 1

Methods

exists()

public static exists(string $currency) : bool
Parameters
$currency : string
Return values
bool

forNumericCode()

public static forNumericCode(int $numericCode) : array<string|int, mixed>
Parameters
$numericCode : int
Tags
throws
MissingResourceException

if the numeric code does not exist

Return values
array<string|int, mixed>

getCashFractionDigits()

public static getCashFractionDigits(string $currency) : int
Parameters
$currency : string
Return values
int

getCashRoundingIncrement()

public static getCashRoundingIncrement(string $currency) : int
Parameters
$currency : string
Return values
int

getCurrencyCodes()

public static getCurrencyCodes() : array<string|int, string>
Return values
array<string|int, string>

getFractionDigits()

public static getFractionDigits(string $currency) : int
Parameters
$currency : string
Return values
int

getName()

public static getName(string $currency[, string $displayLocale = null ]) : string
Parameters
$currency : string
$displayLocale : string = null
Tags
throws
MissingResourceException

if the currency code does not exist

Return values
string

getNames()

public static getNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
$displayLocale : string = null
Return values
array<string|int, string>

getNumericCode()

public static getNumericCode(string $currency) : int
Parameters
$currency : string
Tags
throws
MissingResourceException

if the currency code has no numeric code

Return values
int

getRoundingIncrement()

public static getRoundingIncrement(string $currency) : int
Parameters
$currency : string
Return values
int

getSymbol()

public static getSymbol(string $currency[, string $displayLocale = null ]) : string
Parameters
$currency : string
$displayLocale : string = null
Tags
throws
MissingResourceException

if the currency code does not exist

Return values
string

getPath()

protected static getPath() : string
Return values
string

        
On this page

Search results