![]() |
Xataface 2.0
Xataface Application Framework
|
Public Member Functions | |
__construct ($conf=null) | |
loadRealm ($name) | |
addRealm ($name, $dictionary=null) | |
removeRealm ($name) | |
_loadLangINIFile () | |
translate ($__translation_id, $__defaultText=null, $params=array(), $lang=null) | |
getLanguageSelectorHTML ($params=array()) | |
getLanguageLabel ($code) | |
getLanguageFlag ($code) | |
Data Fields | |
$dictionary | |
$app | |
$realms = array() | |
$lang = null |
Definition at line 100 of file LanguageTool.php.
__construct | ( | $ | conf = null | ) |
Definition at line 133 of file LanguageTool.php.
_loadLangINIFile | ( | ) |
Definition at line 173 of file LanguageTool.php.
addRealm | ( | $ | name, |
$ | dictionary = null |
||
) |
Definition at line 154 of file LanguageTool.php.
getLanguageFlag | ( | $ | code | ) |
Definition at line 341 of file LanguageTool.php.
getLanguageLabel | ( | $ | code | ) |
Definition at line 325 of file LanguageTool.php.
getLanguageSelectorHTML | ( | $ | params = array() | ) |
Returns the HTML for a language selector. This can be a list of flags, or names of languages, or a select list of names of languages.
$params | An associative array of parameters for this method. Keys: name : The name of the select widget or id of the ul (if unordered list) var : The GET variable that will be set by selecting one of these languages. selected : The code of the language that is considered to be currently selected. autosubmit : Whether the select list should auto submit type : 'select' or 'ul' lang : language code override use_flags : default true. |
Definition at line 248 of file LanguageTool.php.
loadRealm | ( | $ | name | ) |
Like addRealm except that it only adds the realm if the realm isn't already loaded.
Definition at line 145 of file LanguageTool.php.
removeRealm | ( | $ | name | ) |
Definition at line 167 of file LanguageTool.php.
translate | ( | $ | __translation_id, |
$ | __defaultText = null , |
||
$ | params = array() , |
||
$ | lang = null |
||
) |
Definition at line 194 of file LanguageTool.php.
$app |
Definition at line 111 of file LanguageTool.php.
$dictionary |
Definition at line 105 of file LanguageTool.php.
$lang = null |
2-digit language code of the language that this language tool is set up for.
Definition at line 124 of file LanguageTool.php.
$realms = array() |
Definition at line 118 of file LanguageTool.php.