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

Class: Numbers_Words_sv

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

Class Overview

Numbers_Words
   |
   --Numbers_Words_sv

Class for translating numbers into Swedish.


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 49]
Class for translating numbers into Swedish.


[ Top ]


Class Variables

$lang =  'Swedish'

[line 66]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =  'Svenska'

[line 73]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'sv'

[line 59]

Locale name
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

_toWords   [line 161]

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

Converts a number to its word representation in Swedish language.

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 Wed, 21 Mar 2012 02:30:14 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.