API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajaxLanguageManager.inc.php » xajaxLanguageManager

Class: xajaxLanguageManager



This class contains the default language (english) and the code used to supply
debug and error messages upon request; as well as the code used to load alternate
language text as requested via the <xajax::configure> function.

variables

functions

xajaxLanguageManager

function xajaxLanguageManager()

Construct and initialize the one and only xajax language manager object.

getInstance

function &getInstance()

Implements the singleton pattern: provides a single instance of the xajax
language manager object to all object which request it.

configure

function configure($sName, $mValue)

Called by the main xajax object as configuration options are set. See also:
. The tracks the following configuration
options.

register

function register($sLanguage, $aMessages)

Called to register an array of alternate language messages.


getText

function getText($sMessage)

Called by the main xajax object and other objects during the initial page generation
or request processing phase to obtain language specific debug and error messages.

sMessage - (string): A code indicating the message text being requested.

 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional