ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLanguageMock Class Reference
+ Inheritance diagram for ilLanguageMock:
+ Collaboration diagram for ilLanguageMock:

Public Member Functions

 __construct ()
 
 txt ($a_topic, $a_default_lang_fallback_mod="")
 
 toJS ($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
 
 loadLanguageModule ($lang_module)
 
- Public Member Functions inherited from ilLanguage
 __construct ($a_lang_key)
 Constructor read the single-language file and put this in an array text. More...
 
 getLangKey ()
 
 getDefaultLanguage ()
 
 txtlng ($a_module, $a_topic, $a_language)
 gets the text for a given topic in a given language if the topic is not in the list, the topic itself with "-" will be returned More...
 
 txt ($a_topic, $a_default_lang_fallback_mod="")
 gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be returned More...
 
 exists ($a_topic)
 Check if language entry exists. More...
 
 loadLanguageModule ($a_module)
 
 getInstalledLanguages ()
 
 getUsedTopics ()
 
 getUsedModules ()
 
 getUserLanguage ()
 
 toJS ($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
 
 toJSMap ($a_map, ilGlobalTemplateInterface $a_tpl=null)
 Transfer text to Javascript. More...
 
 __destruct ()
 destructor saves all language usages to db if log is enabled and ilDB exists More...
 

Data Fields

 $requested = array()
 
 $lang_module = 'common'
 
- Data Fields inherited from ilLanguage
 $ilias
 
 $text
 
 $lang_default
 
 $lang_user
 
 $lang_path
 
 $lang_key
 
 $lang_name
 
 $separator = "#:#"
 
 $comment_separator = "###"
 
 $loaded_modules
 

Additional Inherited Members

- Static Public Member Functions inherited from ilLanguage
static _getInstalledLanguages ()
 
static _lookupEntry ($a_lang_key, $a_mod, $a_id)
 
static lookupId ($a_lang_key)
 Lookup obj_id of language ilDB $ilDB. More...
 
static getFallbackInstance ()
 Builds a global default language instance. More...
 
static getGlobalInstance ()
 Builds the global language object. More...
 
- Static Protected Member Functions inherited from ilLanguage
static logUsage ($a_module, $a_identifier)
 saves tupel of language module and identifier More...
 
static isUsageLogEnabled ()
 checks if language usage log is enabled you need MySQL to use this function this function is automatically enabled if DEVMODE is on this function is also enabled if language_log is 1 More...
 
- Protected Attributes inherited from ilLanguage
 $cached_modules = array()
 
 $map_modules_txt = array()
 
 $usage_log_enabled = false
 
- Static Protected Attributes inherited from ilLanguage
static $used_topics = array()
 
static $used_modules = array()
 
static $lng_log = array()
 

Detailed Description

Definition at line 127 of file Base.php.

Constructor & Destructor Documentation

◆ __construct()

ilLanguageMock::__construct ( )

Definition at line 130 of file Base.php.

131  {
132  }

Member Function Documentation

◆ loadLanguageModule()

ilLanguageMock::loadLanguageModule (   $lang_module)

Definition at line 142 of file Base.php.

143  {
144  }

◆ toJS()

ilLanguageMock::toJS (   $a_lang_key,
ilGlobalTemplateInterface  $a_tpl = null 
)

Definition at line 138 of file Base.php.

139  {
140  }

◆ txt()

ilLanguageMock::txt (   $a_topic,
  $a_default_lang_fallback_mod = "" 
)

Definition at line 133 of file Base.php.

134  {
135  $this->requested[] = $a_topic;
136  return $a_topic;
137  }

Field Documentation

◆ $lang_module

ilLanguageMock::$lang_module = 'common'

Definition at line 141 of file Base.php.

◆ $requested

ilLanguageMock::$requested = array()

Definition at line 129 of file Base.php.


The documentation for this class was generated from the following file: