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

Class: I18N_Format

Source Location: /I18N-1.0.0/Format.php

Class Overview

PEAR
   |
   --I18N_Format



Variables

Methods


Child classes:

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

Inherited Variables

Inherited Methods


Class Details

[line 42]


[ Top ]


Class Variables

$_locale =

[line 51]

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


[ Top ]

$_localeObj =  null

[line 59]

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

Type:   object


[ Top ]



Method Detail

I18N_Format (Constructor)   [line 78]

void I18N_Format( $locale)


Parameters:

   $locale     

[ Top ]

getFormat   [line 149]

void getFormat( )


[ Top ]

setFormat   [line 126]

int setFormat( string $format)

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
  • Return: the format-id, to be used with the format-method
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 02/11/20
  • See: format()

Overridden in child classes as:

I18N_DateTime::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

Parameters:

string   $format     defines a custom format

[ Top ]


Documentation generated on Sat, 13 Feb 2010 19:30:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.