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

Class: Numbers_Words_ru

Source Location: /Numbers_Words-0.15.0/Words/lang.ru.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_ru

Class for translating numbers into Russian.


Author(s):

  • Andrey Demenev

Variables

Methods


Inherited Variables

Inherited Methods

Class: Numbers_Words

Numbers_Words::getLocales()
Lists available locales for 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 Russian.
  • Author: Andrey Demenev


[ Top ]


Class Variables

$def_currency =  'RUB'

[line 418]

The default currency name
  • Access: public

Type:   string


[ Top ]

$lang =  'Russian'

[line 61]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =  'Русский'

[line 68]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'ru'

[line 54]

Locale name
  • Access: public

Type:   string


[ Top ]



Method Detail

toCurrencyWords   [line 600]

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

Converts a currency value to its word representation (with monetary units) in Russian language

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.
integer   $convert_fraction     Convert fraction to words (left as numeric if set to false). Optional. Defaults to true.

[ Top ]


Documentation generated on Tue, 13 Jun 2006 08:07:49 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.