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

Class: Numbers_Words_lt

Source Location: /Numbers_Words-0.10.1/Words/lang.lt.php

Class Overview

Numbers_Words
   |
   --Numbers_Words_lt

Class for translating numbers into Lithuanian.


Author(s):

  • Laurynas Butkus

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 43]
Class for translating numbers into Lithuanian.
  • Author: Laurynas Butkus


[ Top ]


Class Variables

$def_currency =  'LTL'

[line 113]

The default currency name
  • Access: public

Type:   string


[ Top ]

$lang =  'Lithuanian'

[line 60]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =

[line 67]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'lt'

[line 53]

Locale name
  • Access: public

Type:   string


[ Top ]



Method Detail

toWords   [line 135]

string toWords( integer $num, [integer $power = 0], [integer $powsuffix = ''])

Converts a number to its word representation in Lithuanian language
  • Return: The corresponding word representation
  • Author: Laurynas Butkus <lauris@night.lt>
  • 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
integer   $power   —  The power of ten for the rest of the number to the right. Optional, defaults to 0.
integer   $powsuffix   —  The power name to be added to the end of the return string. Used internally. Optional, defaults to ''.

[ Top ]


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