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

Class: I18N_Currency

Source Location: /I18N-1.0.0/Currency.php

Class Overview

PEAR
   |
   --I18N_Format
      |
      --I18N_Number
         |
         --I18N_Currency



Variables

Methods


Inherited Variables

Inherited Methods

Class: I18N_Number

I18N_Number::format()
format a given number depending on the locale
I18N_Number::formatPercent()

Class: I18N_Format

I18N_Format::I18N_Format()
I18N_Format::getFormat()
I18N_Format::setFormat()
define a custom format given by $format and return the $format-id the format-id can be used to call format( x , format-id ) to tell the method you want to use the format with that id

Class Details

[line 28]


[ Top ]


Class Variables

$_locale =

[line 36]

this var contains the current locale this instace works with
  • Var: this is a string like 'de_DE' or 'en_US', etc.
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_localeObj =  null

[line 44]

the locale object which contains all the formatting specs
  • Access: protected

Type:   object
Overrides:   Array


[ Top ]



Method Detail

format   [line 47]

void format( $amount, [ $format = I18N_CURRENCY_LOCAL])


Overrides I18N_Number::format() (format a given number depending on the locale)

Parameters:

   $amount   — 
   $format   — 

[ Top ]


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