MIOLO26
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 ()
 
 __construct ()
 
 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
 

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $ISOCode = NULL)

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.

◆ 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.

◆ 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.

◆ 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.

Documentação dos campos e atributos

◆ $defaultISOCode

$defaultISOCode = 'REAL'

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