Language table manager
When PHP2Go initializes, the default language table of the framework is loaded into the singleton of the LanguageBase class. That's the way the core classes retrieve internationalized messages.
By adding a LANGUAGE.MESSAGES_PATH in the global configuration settings, you're able to create your own language domains, which are also accessible from this class. The only difference is that when using custom domains, the domain must be provided together with the name of the language entry.
Located in /core/LanguageBase.class.php (line 51)
Get the singleton of the LanguageBase class
Class constructor
Shouldn't be called directly. Always use getInstance to read, add or modify language entries.
Clear all loaded language entries
Resolve a given language entry
The $params attribute expects a single substitution variable or an array of substitution variables. This variables are used to replace printf placeholders inside the message.
Loads language entries from a file
This method is called inside Init class to load internationalized messages used by the framework into the 'PHP2GO' language domain.
Add/replace a set of language entries in a given language domain
Loads a given language domain
Based on the messages path (LANGUAGE.MESSAGES_PATH) and on the active language code (LANGUAGE_CODE), determine the path of the language domain file in the file system. Tries to read that file, and load its contents into the language table in case of success.
Documentation generated on Sun, 07 Oct 2007 19:26:56 -0300 by phpDocumentor 1.3.2