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

Class: I18N_Format

Source Location: /I18N-0.8.5/Format.php

Class Overview

PEAR
   |
   --I18N_Format



Variables

Methods


Child classes:

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

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( mixed $locale)


[ Top ]

getFormat   [line 127]

void getFormat( )


[ Top ]

setFormat   [line 104]

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 <mailto: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 Fri, 30 Apr 2004 22:55:56 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.