|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct () | |
| load_component_strings ($component, $lang, $disablecache=false, $disablelocal=false) | |
| string_exists ($identifier, $component) | |
| get_string ($identifier, $component= '', $a=NULL, $lang=NULL) | |
| get_list_of_countries ($returnall=false, $lang=NULL) | |
| get_list_of_languages ($lang=NULL, $standard= 'iso6392') | |
| translation_exists ($lang, $includeall=true) | |
| get_list_of_translations ($returnall=false) | |
| get_list_of_currencies ($lang=NULL) | |
| reset_caches () | |
Protected Attributes | |
| $installroot | |
Definition at line 6645 of file moodlelib.php.
| __construct | ( | ) |
Crate new instance of install string manager
Definition at line 6652 of file moodlelib.php.
| get_list_of_countries | ( | $ | returnall = false, |
| $ | lang = NULL |
||
| ) |
Returns a localised list of all country names, sorted by country keys.
| bool | $returnall | return all or just enabled |
| string | $lang | moodle translation language, NULL means use current |
Implements string_manager.
Definition at line 6778 of file moodlelib.php.
| get_list_of_currencies | ( | $ | lang = NULL | ) |
Returns localised list of currencies.
| string | $lang | moodle translation language, NULL means use current |
Implements string_manager.
Definition at line 6838 of file moodlelib.php.
| get_list_of_languages | ( | $ | lang = NULL, |
| $ | standard = 'iso6392' |
||
| ) |
Returns a localised list of languages, sorted by code keys.
| string | $lang | moodle translation language, NULL means use current |
| string | $standard | language list standard iso6392: three-letter language code (ISO 639-2/T) => translated name. |
Implements string_manager.
Definition at line 6791 of file moodlelib.php.
| get_list_of_translations | ( | $ | returnall = false | ) |
Returns localised list of installed translations
| bool | $returnall | return all or just enabled |
Implements string_manager.
Definition at line 6812 of file moodlelib.php.

| get_string | ( | $ | identifier, |
| $ | component = '', |
||
| $ | a = NULL, |
||
| $ | lang = NULL |
||
| ) |
Get String returns a requested string
| string | $identifier | The identifier of the string to search for |
| string | $component | The module the string is associated with |
| string | object | array | $a | An object, string or number that can be used within translation strings |
| string | $lang | moodle translation language, NULL means use current |
Implements string_manager.
Definition at line 6702 of file moodlelib.php.


| load_component_strings | ( | $ | component, |
| $ | lang, | ||
| $ | disablecache = false, |
||
| $ | disablelocal = false |
||
| ) |
Load all strings for one component
| string | $component | The module the string is associated with |
| string | $lang | |
| bool | $disablecache | Do not use caches, force fetching the strings from sources |
| bool | $disablelocal | Do not use customized strings in xx_local language packs |
Implements string_manager.
Definition at line 6665 of file moodlelib.php.
| reset_caches | ( | ) |
This implementation does not use any caches
Implements string_manager.
Definition at line 6846 of file moodlelib.php.
| string_exists | ( | $ | identifier, |
| $ | component | ||
| ) |
Does the string actually exist?
get_string() is throwing debug warnings, sometimes we do not want them or we want to display better explanation of the problem.
Use with care!
| string | $identifier | The identifier of the string to search for |
| string | $component | The module the string is associated with |
Implements string_manager.
Definition at line 6682 of file moodlelib.php.

| translation_exists | ( | $ | lang, |
| $ | includeall = true |
||
| ) |
Does the translation exist?
| string | $lang | moodle translation language code |
| bool | include also disabled translations? |
Implements string_manager.
Definition at line 6803 of file moodlelib.php.
$installroot [protected] |
Definition at line 6647 of file moodlelib.php.