LangSelect Class Reference

Maintain page language selection. More...

List of all members.

Public Member Functions

 getLang ()
string Selected language.

 handleLangSelect ()
 Read client request for language selection.
 isLangCz ()

Static Public Member Functions

static singleton ()
 Access point to singleton.

Detailed Description

Maintain page language selection.

Selection is stored as session variable. Prefered is user language selection. If there is no user selection, browser default is used. Design pattern singleton.

Copy-pasted from archive.

Definition at line 439 of file base.php.

Member Function Documentation

LangSelect::getLang (  ) 

string Selected language.

For now, "en" and "cz" are possible.

Definition at line 478 of file base.php.

Referenced by isLangCz().

LangSelect::handleLangSelect (  ) 

Read client request for language selection.

If there is no slection browser default is used. This function should be called first when a new page is being build.

Definition at line 460 of file base.php.

LangSelect::isLangCz (  ) 

Use LangSelect::getLang method instead.
bool Return true if language "cz" is selected.

Definition at line 487 of file base.php.

References getLang().

Here is the call graph for this function:

static LangSelect::singleton (  )  [static]

Access point to singleton.

reference Reference to singleton object.

Definition at line 445 of file base.php.

Referenced by L10n::tr(), and L10n::trMap().

The documentation for this class was generated from the following file:
Generated on Sat Mar 8 10:26:44 2008 for by  doxygen 1.5.4