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

Class: Numbers_Words_tr_TR

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

Class Overview

Numbers_Words
   |
   --Numbers_Words_tr_TR

Class for translating numbers into Italian.


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 46]
Class for translating numbers into Italian.

It supports up to quadrilions



[ Top ]


Class Variables

$def_currency =  'TRY'

[line 164]

The default currency name
  • Access: public

Type:   string


[ Top ]

$lang =  'Turkish'

[line 62]

Language name in English
  • Access: public

Type:   string


[ Top ]

$lang_native =  'Türkçe'

[line 69]

Native language name
  • Access: public

Type:   string


[ Top ]

$locale =  'tr_TR'

[line 55]

Locale name
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

toCurrencyWords   [line 343]

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 English language
  • Return: The corresponding word representation for the currency
  • Author: Piotr Klaban <makler@man.torun.pl>
  • Since: Numbers_Words 0.4
  • 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 183]

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

Converts a number to its word representation in italiano.
  • Return: The corresponding word representation
  • Author: Filippo Beltramini
  • Since: Numbers_Words 0.16.3
  • Access: protected

Parameters:

integer   $num     An integer between -infinity and infinity inclusive :) that should be converted to a words representation
integer   $power     The power of ten for the rest of the number to the right. For example toWords(12,3) should give "doce mil". Optional, defaults to 0.

[ Top ]


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