|
MIOLO26
|
Membros públicos | |
| CurrencyFormatter () | |
| __construct () | |
| format ( $amount, $ISOCode) | |
| formatWithSymbol ( $amount, $ISOCode) | |
| validate ( $amount, $ISOCode) | |
| toDecimal ( $amount, $ISOCode) | |
| toDecimalForStyle ( $amount, $style) | |
| supportsISOCode ( $ISOCode) | |
| getFormattingStyles () | |
| getISOCodes () | |
| getStyleForISOCode ( $ISOCode) | |
| getSymbol ( $ISOCode) | |
| symbolIsAfterAmount ( $ISOCode) | |
| getPrefixSuffixArray ( $ISOCode) | |
| removePrefixAndSuffix ( $amount, $ISOCode) | |
| getSeparators ( $style) | |
| validateForStyle ( $amount, $style) | |
| formatWithStyle ( $amount, $style) | |
Campos de Dados | |
| $formattingStyles | |
| $ISOCodeStyles | |
| $nonDollarSymbols | |
| $currenciesWithSymbolsAfterAmount | |
| __construct | ( | ) |
Sets up the instance variables. Must be called for the object to operate correctly. @access public
| format | ( | $amount, | |
| $ISOCode ) |
Returns the specified amount formatted according to the formatting style used for the specified ISO 4217 currency code.
@access public
| double | $amount | The amount to be formatted. |
| string | $ISOCode | ISO 4217 currency code. |
Reimplementado em MCurrencyFormatter.
| formatWithStyle | ( | $amount, | |
| $style ) |
Returns the specified amount formatted according to the specified formatting style.
@access public
| double | $amount | The amount to be formatted. |
| string | $style | The style to be used for formatting. |
| formatWithSymbol | ( | $amount, | |
| $ISOCode ) |
Returns the specified amount formatted according to the formatting style used for the specified ISO 4217 currency code with the currency symbol included.
Reimplementado em MCurrencyFormatter.
| getFormattingStyles | ( | ) |
Returns an hashtable of the supported formatting styles. @access public
| getISOCodes | ( | ) |
Returns an array of the supported ISO 4217 codes. @access public
| getPrefixSuffixArray | ( | $ISOCode | ) |
Convenience function that returns an array with two elements: a prefix and a suffix. eg. list($prefix, $suffix) = $cf->getPrefixSuffixArray( "AUD" ); echo $prefix.$cf->format( 9999.95, "AUD" ).$suffix; // outputs "$9,999.95"*
@access public
| string | $ISOCode | ISO 4217 currency code. |
| getSeparators | ( | $style | ) |
Returns a two element array that contains the thousands separator and the the decimal place separator respectively for the specified formatting style.
@access private
| string | $style | The formatting style to be used. |
| getStyleForISOCode | ( | $ISOCode | ) |
Returns the key of the formatting style used for the specified ISO 4217 currency code.
@access public
| string | $ISOCode | ISO 4217 currency code. |
| getSymbol | ( | $ISOCode | ) |
Returns the symbol (ie. '$' or 'Y') for the specified ISO 4217 currency code.
@access public
| string | $ISOCode | ISO 4217 currency code. |
| removePrefixAndSuffix | ( | $amount, | |
| $ISOCode ) |
Removes the prefix and suffix from an $amount formatted for the specified $ISOCode. @access public
| double | $amount | |
| string | $ISOCode |
| supportsISOCode | ( | $ISOCode | ) |
Checks to see if the formatting for the specified code is supported.
| string | $ISOCode | ISO 4217 currency code. @access public |
| symbolIsAfterAmount | ( | $ISOCode | ) |
Returns true if the symbol for the specified ISO 4217 currency code should be displayed after (to the right of) the amount.
@access public
| string | $ISOCode | ISO 4217 currency code. |
| toDecimal | ( | $amount, | |
| $ISOCode ) |
Returns the decimal amount represented by the amount according to the formatting style used for the specified ISO 4217 currency code.
@access public
| double | $amount | The amount to be validated. |
| string | $ISOCode | ISO 4217 currency code. |
Reimplementado em MCurrencyFormatter.
| toDecimalForStyle | ( | $amount, | |
| $style ) |
Returns the decimal amount represented by the amount according to the specified formatting style.
@access public
| double | $amount | The amount to be validated. |
| string | $style | The formatting style to be used. |
| validate | ( | $amount, | |
| $ISOCode ) |
Validates whether the specified amount is properly formatted according to the formatting style used for the specified ISO 4217 currency code. Returns true if the specified amount is properly formatted.
@access public
| double | $amount | The amount to be validated. |
| string | $ISOCode | ISO 4217 currency code. |
Reimplementado em MCurrencyFormatter.
| validateForStyle | ( | $amount, | |
| $style ) |
Validates whether the specified amount is properly formatted according to the specified formatting style. Returns true if the specified amount is properly formatted.
@access public
| double | $amount | The amount to be validated. |
| string | $style | The formatting style to validate. |
| $currenciesWithSymbolsAfterAmount |
A list of the ISO 4217 currency codes that have their symbol displayed after the amount.
| $formattingStyles |
A list of all the supported currency formatting styles.
| $ISOCodeStyles |
A hashtable that maps the supported ISO 4217 currency codes to the formatting style to be used for amounts in that currency.
| $nonDollarSymbols |
A list of all the supported ISO 4217 currency codes that don't have a dollar sign as their symbol.