MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MCurrencyFormatter
Diagrama de heranças da classe MCurrencyFormatter
CurrencyFormatter

Membros públicos

 __construct ($ISOCode=NULL)
 
 format ( $amount, $ISOCode=NULL)
 
 formatWithSymbol ( $amount, $ISOCode=NULL)
 
 validate ( $amount, $ISOCode=NULL)
 
 toDecimal ( $amount, $ISOCode=NULL)
 
- Membros públicos herdados de CurrencyFormatter
 CurrencyFormatter ()
 
 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

 $defaultISOCode = 'REAL'
 
- Campos de Dados herdados de CurrencyFormatter
 $formattingStyles
 
 $ISOCodeStyles
 
 $nonDollarSymbols
 
 $currenciesWithSymbolsAfterAmount
 

Descrição detalhada

Definido na linha 515 do ficheiro mcurrencyformatter.class.

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $ISOCode = NULL)

Definido na linha 519 do ficheiro mcurrencyformatter.class.

Documentação das funções

◆ format()

format ( $amount,
$ISOCode = NULL )

Returns the specified amount formatted according to the formatting style used for the specified ISO 4217 currency code.

@access public

Parâmetros
double$amountThe amount to be formatted.
string$ISOCodeISO 4217 currency code.
Retorna
string The formatted amount.

Reimplementado de CurrencyFormatter.

Definido na linha 528 do ficheiro mcurrencyformatter.class.

◆ formatWithSymbol()

formatWithSymbol ( $amount,
$ISOCode = NULL )

Returns the specified amount formatted according to the formatting style used for the specified ISO 4217 currency code with the currency symbol included.

Reimplementado de CurrencyFormatter.

Definido na linha 537 do ficheiro mcurrencyformatter.class.

◆ toDecimal()

toDecimal ( $amount,
$ISOCode = NULL )

Returns the decimal amount represented by the amount according to the formatting style used for the specified ISO 4217 currency code.

@access public

Parâmetros
double$amountThe amount to be validated.
string$ISOCodeISO 4217 currency code.
Retorna
double

Reimplementado de CurrencyFormatter.

Definido na linha 555 do ficheiro mcurrencyformatter.class.

◆ validate()

validate ( $amount,
$ISOCode = NULL )

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

Parâmetros
double$amountThe amount to be validated.
string$ISOCodeISO 4217 currency code.
Retorna
boolean True if $amount is properly formatted, false if not.

Reimplementado de CurrencyFormatter.

Definido na linha 546 do ficheiro mcurrencyformatter.class.

Documentação dos campos e atributos

◆ $defaultISOCode

$defaultISOCode = 'REAL'

Definido na linha 517 do ficheiro mcurrencyformatter.class.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: