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

Class: Numbers_Words_Locale_ru

Source Location: /Numbers_Words-0.18.1/Numbers/Words/Locale/ru.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_Locale_ru

Class for translating numbers into Russian.


Author(s):

Variables

Methods


Child classes:

Numbers_Words_Locale_ua
Class for translating numbers into Russian.

Inherited Variables

Inherited Methods

Class: Numbers_Words

Numbers_Words::getLocales()
Lists available locales for Numbers_Words
Numbers_Words::loadLocale()
Load the given locale and return class name
Numbers_Words::normalizeNumber()
Removes redundant spaces, thousands separators, etc.
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 48]
Class for translating numbers into Russian.


[ Top ]


Class Variables

$def_currency =  'RUB'

[line 422]

The default currency name
  • Access: public

Type:   string


[ Top ]

$lang =  'Russian'

[line 65]

Language name in English
  • Access: public

Type:   string


[ Top ]

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

[line 72]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'ru'

[line 58]

Locale name
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

toCurrencyWords   [line 633]

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
  • Return: The corresponding word representation for the currency
  • Author: Andrey Demenev <demenev@on-line.jar.ru>
  • 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.
integer   $convert_fraction   —  Convert fraction to words (left as numeric if set to false). Optional. Defaults to true.

[ Top ]

_toWords   [line 442]

string _toWords( integer $num, [ $options = array()], integer $gender)

Converts a number to its word representation in Russian language
  • Return: The corresponding word representation
  • Author: Andrey Demenev <demenev@on-line.jar.ru>
  • Since: Numbers_Words 0.16.3
  • Access: protected

Parameters:

integer   $num   —  An integer between -infinity and infinity inclusive :) that need to be converted to words
integer   $gender   —  Gender of string, 0=neutral, 1=male, 2=female. Optional, defaults to 1.
   $options   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:59:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.