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

Class: I18N_Number

Source Location: /I18N-0.8.2b1/Number.php

Class Overview

PEAR
   |
   --I18N_Format
      |
      --I18N_Number

this is just a basic implementation for now, but one day


Variables

Methods


Child classes:

I18N_Currency
this is just a basic implementation for now, but one day

Inherited Variables

Inherited Methods

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 35]
this is just a basic implementation for now, but one day

this http://java.sun.com/docs/books/tutorial/i18n/format/numberpattern.html should be implemented, anyone with a DecimalFormat-class please step forward :-)



[ Top ]


Class Variables

$_locale =

[line 44]

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 52]

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

Type:   object
Overrides:   Array


[ Top ]



Method Detail

format   [line 67]

string format( mixed $number, [mixed $format = null])

format a given number depending on the locale

Overridden in child classes as:

I18N_Currency::format()

Parameters:

mixed   $number     the number to be formatted

[ Top ]

formatPercent   [line 90]

void formatPercent( )


[ Top ]


Documentation generated on Fri, 30 Apr 2004 21:51:34 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.