Numbers_Words
[ class tree: Numbers_Words ] [ index: Numbers_Words ] [ all elements ]

Class: Numbers_Words_pt_BR

Source Location: /Numbers_Words-0.13.0/Words/lang.pt_BR.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_pt_BR

Class for translating numbers into Brazilian Portuguese.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Numbers_Words

Numbers_Words::raiseError()
Trigger a PEAR error
Numbers_Words::toCurrency()
Converts a currency value to word representation (1.02 => one dollar two cents) If the number has not any fraction part, the "cents" number is omitted.
Numbers_Words::toWords()
Converts a number to its word representation

Class Details

[line 44]
Class for translating numbers into Brazilian Portuguese.


[ Top ]


Class Variables

$def_currency =  'BRL'

[line 199]

The default currency name
  • Access: public

Type:   string


[ Top ]

$lang =  'Brazilian Portuguese'

[line 59]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =

[line 66]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'pt_BR'

[line 52]

Locale name
  • Access: public

Type:   string


[ Top ]



Method Detail

toCurrencyWords   [line 279]

string toCurrencyWords( integer $int_curr, integer $decimal, [integer $fraction = false])

Converts a currency value to its word representation (with monetary units) in Portuguese language
  • Return: The corresponding word representation for the currency
  • Author: Mario H.C.T. <mariolinux@mitus.com.br>
  • Since: Numbers_Words 0.10.1
  • Access: public

Parameters:

integer   $int_curr   —  An international currency symbol as defined by the ISO 4217 standard (three characters)
integer   $decimal   —  A money total amount without fraction part (e.g. amount of dollars)
integer   $fraction   —  Fractional part of the money amount (e.g. amount of cents) Optional. Defaults to false.

[ Top ]

toWords   [line 216]

string toWords( integer $num)

Converts a number to its word representation in Brazilian Portuguese language
  • Return: The corresponding word representation
  • Author: Marcelo Subtil Marcal <jason@conectiva.com.br>
  • Since: PHP 4.2.3
  • Access: public

Overrides Numbers_Words::toWords() (Converts a number to its word representation)

Parameters:

integer   $num   —  An integer between -infinity and infinity inclusive :) that need to be converted to words

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:28:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.