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

Class: Numbers_Words_bg

Source Location: /Numbers_Words-0.16.4/Numbers/Words/lang.bg.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_bg

Class for translating numbers into Bulgarian.


Author(s):

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 39]
Class for translating numbers into Bulgarian.


[ Top ]


Class Variables

$lang =  'Bulgarian'

[line 56]

Language name in English.
  • Access: public

Type:   string


[ Top ]

$lang_native =  'Български'

[line 63]

Native language name.
  • Access: public

Type:   string


[ Top ]

$locale =  'bg'

[line 49]

Locale name.
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

Numbers_Words_bg (Constructor)   [line 272]

void Numbers_Words_bg( )

The class constructor, used for calling the _initDigits method.
  • Author: Kouber Saparev <kouber@php.net>
  • See: function _initDigits
  • Access: public

[ Top ]

_toWords   [line 452]

string _toWords( [integer $num = 0])

Converts a number to its word representation in Bulgarian language.
  • Return: The corresponding word representation
  • Author: Kouber Saparev <kouber@php.net>
  • Since: Numbers_Words 0.16.3
  • Access: protected

Parameters:

integer   $num     An integer between 9.99*-10^302 and 9.99*10^302 (999 centillions) that need to be converted to words

[ Top ]


Documentation generated on Wed, 21 Mar 2012 02:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.