ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Refinery\ilLanguageMock Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\ilLanguageMock:
+ Collaboration diagram for ILIAS\Tests\Refinery\ilLanguageMock:

Public Member Functions

 __construct ()
 
 txt (string $a_topic, string $a_default_lang_fallback_mod='')
 
 toJS ($a_lang_key, ?ilGlobalTemplateInterface $a_tpl=null)
 
 loadLanguageModule (string $a_module)
 
 getLangKey ()
 
- Public Member Functions inherited from ILIAS\Language\Language
 txt (string $a_topic, string $a_default_lang_fallback_mod="")
 
 loadLanguageModule (string $a_module)
 
 getLangKey ()
 
 toJS ($key)
 

Data Fields

array $requested = []
 
string $lang_module = 'common'
 
string $lang_key = 'en'
 

Detailed Description

Definition at line 27 of file TestCase.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Tests\Refinery\ilLanguageMock::__construct ( )

Definition at line 34 of file TestCase.php.

35 {
36 }

Member Function Documentation

◆ getLangKey()

ILIAS\Tests\Refinery\ilLanguageMock::getLangKey ( )

Implements ILIAS\Language\Language.

Definition at line 52 of file TestCase.php.

52 : string
53 {
54 return $this->lang_key;
55 }

References ILIAS\Tests\Refinery\ilLanguageMock\$lang_key.

◆ loadLanguageModule()

ILIAS\Tests\Refinery\ilLanguageMock::loadLanguageModule ( string  $a_module)

Implements ILIAS\Language\Language.

Definition at line 48 of file TestCase.php.

48 : void
49 {
50 }

◆ toJS()

ILIAS\Tests\Refinery\ilLanguageMock::toJS (   $a_lang_key,
?ilGlobalTemplateInterface  $a_tpl = null 
)

Definition at line 44 of file TestCase.php.

44 : void
45 {
46 }

◆ txt()

ILIAS\Tests\Refinery\ilLanguageMock::txt ( string  $a_topic,
string  $a_default_lang_fallback_mod = '' 
)

Implements ILIAS\Language\Language.

Definition at line 38 of file TestCase.php.

38 : string
39 {
40 $this->requested[] = $a_topic;
41 return $a_topic;
42 }

Field Documentation

◆ $lang_key

string ILIAS\Tests\Refinery\ilLanguageMock::$lang_key = 'en'

Definition at line 32 of file TestCase.php.

Referenced by ILIAS\Tests\Refinery\ilLanguageMock\getLangKey().

◆ $lang_module

string ILIAS\Tests\Refinery\ilLanguageMock::$lang_module = 'common'

Definition at line 31 of file TestCase.php.

◆ $requested

array ILIAS\Tests\Refinery\ilLanguageMock::$requested = []

Definition at line 30 of file TestCase.php.


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