Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

I18N Class Reference

List of all members.

Public Member Functions

 I18N ()
 GetLanguage ()
 SetLanguage ($lang)
GetInstance ()
 Language ($list, $lang="")

Public Attributes

 $language
 The environment language.

 $domain

Detailed Description

Contains the functions related to the internationalization: the initialization, the access to concrete information, etc.

Definition at line 25 of file I18N.class.php.


Constructor & Destructor Documentation

I18N::I18N  ) 
 

Initializes the i18n environment taking the current language from the HTTP_ACCEPT_LANGUAGE tag of the user navigator

Definition at line 35 of file I18N.class.php.

Referenced by GetInstance().


Member Function Documentation

& I18N::GetInstance  ) 
 

Gets an unique instance of this class

Returns:
I18N object

Definition at line 69 of file I18N.class.php.

References I18N().

Referenced by Language().

I18N::GetLanguage  ) 
 

Gets the current environment language

Returns:
string

Definition at line 51 of file I18N.class.php.

I18N::Language list,
lang = ""
 

Static method that gets a list and a language and returns the element in the list with the apropiated language. If no language is given, it will use the default language in the system.

Parameters:
list Array like $array[lang] = "text"
lang The returned language. Can be void.
Returns:
string

Definition at line 88 of file I18N.class.php.

References $i18n, and GetInstance().

Referenced by Group::AddModule(), and Group::SetModuleName().

I18N::SetLanguage lang  ) 
 

Sets the current environment language

Parameters:
string The language

Definition at line 60 of file I18N.class.php.


Member Data Documentation

I18N::$domain
 

Definition at line 28 of file I18N.class.php.

I18N::$language
 

The environment language.

Definition at line 27 of file I18N.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:37 2003 for James by doxygen 1.3.4