ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilDefaultLanguageDetector Class Reference

Class ilDefaultLanguageDetector. More...

+ Inheritance diagram for ilDefaultLanguageDetector:
+ Collaboration diagram for ilDefaultLanguageDetector:

Public Member Functions

 __construct (ilIniFile $ini)
 
 getIso2LanguageCode ()
 Returns the detected ISO2 language code. More...
 

Protected Attributes

 $ini
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDefaultLanguageDetector::__construct ( ilIniFile  $ini)
Parameters
$iniilIniFile

Definition at line 21 of file class.ilDefaultLanguageDetector.php.

References $ini.

22  {
23  $this->ini = $ini;
24  }

Member Function Documentation

◆ getIso2LanguageCode()

ilDefaultLanguageDetector::getIso2LanguageCode ( )

Returns the detected ISO2 language code.

Returns
string

Implements ilLanguageDetector.

Definition at line 30 of file class.ilDefaultLanguageDetector.php.

31  {
32  return $this->ini->readVariable('language', 'default');
33  }

Field Documentation

◆ $ini

ilDefaultLanguageDetector::$ini
protected

Definition at line 16 of file class.ilDefaultLanguageDetector.php.

Referenced by __construct().


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